Jump to content

Need to convert ea to trade 5 digits


Recommended Posts

Re: Need to convert ea to trade 5 digits

 

Hi

 

Many thanks for attempting. I will try it and let u know if it works. I use it on EURUSD and GBPUSD 15min and GBPJPY 5min

 

Can be quite dangerous if not watched. I use it to open trades and close trades when in profit works well for me. If u have an indicator to show u the trend even better as it makes mega pips in trending market

 

All the best

Link to comment
Share on other sites

Re: Need to convert ea to trade 5 digits

 

Hi Collin

 

Have tested it but unfortunately it does not place any trades

 

Best rgds

 

Hello fxwealth,

 

I checked the codes and it has the following information:

 

1. This code only works in demo, not live account (not unless the demo statements are removed).

 

2. The execution will only start after 12hrs server time (TimeToStartTrade - this value can be changed by user).

 

If your EA starts before 12, I think it will not place any trade.

 

Regards,

Collin

Link to comment
Share on other sites

Re: Need to convert ea to trade 5 digits

 

try this version

 

1.unlocked

2.cleaned up the code somewhat to assist with further work and testing

3. five digit accts work; works automatically but can be switched on independent of digits.

4. added magic number for multiple instances.

 

regards,

 

JamatL :mrgreen:

Link to comment
Share on other sites

Re: Need to convert ea to trade 5 digits

 

try this version

 

1.unlocked

2.cleaned up the code somewhat to assist with further work and testing

3. five digit accts work; works automatically but can be switched on independent of digits.

4. added magic number for multiple instances.

 

regards,

 

JamatL :mrgreen:

 

Thank you very much , should i change the magic number for each currency pair ? and if yes what magic numbers should i enter ??

 

 

regards,

Link to comment
Share on other sites

Re: Need to convert ea to trade 5 digits

 

try this version

 

1.unlocked

2.cleaned up the code somewhat to assist with further work and testing

3. five digit accts work; works automatically but can be switched on independent of digits.

4. added magic number for multiple instances.

 

regards,

 

JamatL :mrgreen:

 

Thank you very much , should i change the magic number for each currency pair ? and if yes what magic numbers should i enter ??

 

 

regards,

 

that the whole idea of the magic number, to allow the expert to operate completely separate from any other instances that may be attached to different currency pairs or even the same currency pair.

 

In other words, you can have it attached to separate charts , and running at the same time independently, provided to change its unique magic number for each different chart you attach it to...

 

BTW, any number will do, so long as it is unique.

 

best of luck

Link to comment
Share on other sites

  • 1 year later...

double xPoint=0;

 

int init() {

if (Point == 0.00001) xPoint = 0.0001;

else {

if (Point == 0.001) xPoint = 0.01;

else xPoint = Point;

}

return (0);

}

 

// change point -> xPoint;

//Normal prıcess

OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, Ask-25*Point, Ask+25*Point, "5 dig", 0, 0, CLR_NONE);

// automatic change 4/5 Point

OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, Ask-25*xPoint, Ask+25*xPoint, "5 dig", 0, 0, CLR_NONE);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...