Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 06-04-2009, 03:05 PM
cutzpr's Avatar
Member
 
Join Date: Jan 2008
Posts: 60
cutzpr is on a distinguished road
Try this. I did not come up with the code, I forgot who did but I use it in my EA and it works flawlessly.

double Poin;

//The following code was also included to solve the 6 digit broker quoting

if (Point == 0.00001) Poin = 0.0001; //6 digits
else if (Point == 0.001) Poin = 0.01; //3 digits (for Yen based pairs)
else Poin = Point; //Normal

You can modify it for your own broker digits.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #12 (permalink)  
Old 08-08-2009, 01:04 AM
Junior Member
 
Join Date: Jun 2009
Posts: 10
mallet52 is on a distinguished road
Smile Coder needed for simple job

I need a a coder to get my ea working with a 5 digit broker,it works fine with fxdd demo ac, tried to run on my live ac with fxcm bt ac, and it coming up with ''error order send 130'' and as the tp's sl's are far enough away from the price I'm guessing it may be that it's not coded to work with a five digit broker?
any idea's?
by the way the ea is the Phoenix_v5_6_03 it has made good gains on my demo ac so feel free to go trial it and see how it works for you.
Attached Files
File Type: mq4 phoenix_ea_v5_6_03.mq4 (33.8 KB, 9 views)
File Type: ex4 phoenix_ea_v5_6_03.ex4 (26.3 KB, 3 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #13 (permalink)  
Old 08-08-2009, 07:38 AM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,270
mladen is on a distinguished road
...

Here you go (the 5 digit issue)
Also changed the way defaults are set for certain symbols, so now it can recognize any "prefix", "suffix", ... in a symbol for those symbols (in the init section)

If it still causes that ''error order send 130'' on your live account, than your live broker does not allow placing stop loss and take profit along with opening a trade, and then it needs additional coding (those are ECN or STP rules for trades)

regards
mladen

Quote:
Originally Posted by mallet52 View Post
I need a a coder to get my ea working with a 5 digit broker,it works fine with fxdd demo ac, tried to run on my live ac with fxcm bt ac, and it coming up with ''error order send 130'' and as the tp's sl's are far enough away from the price I'm guessing it may be that it's not coded to work with a five digit broker?
any idea's?
by the way the ea is the Phoenix_v5_6_03 it has made good gains on my demo ac so feel free to go trial it and see how it works for you.
Attached Files
File Type: mq4 phoenix_ea_v5_6_04.mq4 (34.3 KB, 15 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #14 (permalink)  
Old 08-08-2009, 08:19 AM
Junior Member
 
Join Date: Jun 2009
Posts: 10
mallet52 is on a distinguished road
Thankyou,mladen very much appricated

Thankyou very much for your time and effort,can't till monday to give it a try out.
On my demo ac, this ea produced so very good results on the eur/jpy and the gpb/jpy
will keep posted on how it go's on the live ac

Cheers



Quote:
Originally Posted by mladen View Post
Here you go (the 5 digit issue)
Also changed the way defaults are set for certain symbols, so now it can recognize any "prefix", "suffix", ... in a symbol for those symbols (in the init section)

If it still causes that ''error order send 130'' on your live account, than your live broker does not allow placing stop loss and take profit along with opening a trade, and then it needs additional coding (those are ECN or STP rules for trades)

regards
mladen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #15 (permalink)  
Old 08-11-2009, 08:18 AM
Junior Member
 
Join Date: Jun 2009
Posts: 10
mallet52 is on a distinguished road
still need help

Hey guys,
I still haveing trouble getting my ea to work with fxcm bt,they tell me that I have a problem with the ea placing sl ant tp at the same time it puts in a market order,
Mladen kindly recoded this ea for so it would accept the 5 digit pricing and now this problem came up,
It would be great if somone could code the delay in to the ea that is needed for me,or explain it in great detail ( as I have no knowalge on how to code) and I will have a go at it myself, so I don't have to keep bothering everyone else.
thankyou in advance
and to all those who have helped me in the past
Attached Files
File Type: mq4 phoenix_ea_v5_6_04.mq4 (34.3 KB, 6 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #16 (permalink)  
Old 09-17-2009, 04:22 AM
Junior Member
 
Join Date: Jan 2009
Posts: 2
wiedstone is on a distinguished road
[Ask]How to Make Indicator from 4 Digit's Broker Work for 5 Digit's Broker ?

Hello. all.
First of all, I am new in programming mq4. Recently, I changed my broker from 4 digits to the one with 5 digits. What I didn't anticipate was : all indicators didn't work in this new broker.
Does anyone know how to make all the indicators work ? Like a code or something that I can put in the indicators ?
Can someone here do something about it ?

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get 4 digit after dot rayie Questions 3 01-04-2006 04:16 AM


All times are GMT. The time now is 09:18 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.