In the Journal is nothing.
Hi, Some brokers have a minimum stop distance that prevent your EA to modify your stop. Use this to find your minimum stop distance :
int stoplevel = (int) SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL);
if (stoplevel!= 0)
{
PrintFormat("The minimum stop level is :" + stoplevel);
}
Hi, Some brokers have a minimum stop distance that prevent your EA to modify your stop. Use this to find your minimum stop distance :
int stoplevel = (int) SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL);
if (stoplevel!= 0)
{
PrintFormat("The minimum stop level is :" + stoplevel);
}
Of course stoplevel and freeze are regarded in the code. I wrote above that Bid was 100 Points over entry price.
I finally set SL by hand to 60 Points profit - while the function could not even set 10 Points profit.
And in the backtest next day with the same broker on the same account SL was set as it should.
But thanks anyway.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
In the Journal is nothing.