As I know Alpari has 5 digits prices, so you have to increase your stops to 10 times.
Roger:
Or have the EA/script auto adjust TP, SL, AND slippageAs I know Alpari has 5 digits prices, so you have to increase your stops to 10 times.
//++++ These are adjusted for 5 digit brokers. double pips2points, // slippage 3 pips 3=points 30=points pips2dbl; // Stoploss 15 pips 0.0015 0.00150 int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips) int init(){ if (Digits == 5 || Digits == 3){ // Adjust for five (5) digit brokers. pips2dbl = Point*10; pips2points = 10; Digits.pips = 1; } else { pips2dbl = Point; pips2points = 1; Digits.pips = 0; } // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I want to use scripts for placing and closing orders. For example 1 click 5 dig Buy 11pips. On my demoaccount this is no problem at all. But on my live account it doesn't work. I get the message ( on the journal) : loaded successfully / inputs risk=15 / uninit reason 0 / removed
I have asked Alpari for help, but they can't help
Who can help me with this problem ?