Do you have a fixed Spread ??
in that case choose
//sl = StopLoss*Point
tp = (Stoploss+Spread)*Point
Without a fixed Spread you will have always a little difference
But before trying the code
I have this problem exists after several deals
The opening of a deal remained open without a stop loss and without a Take Profit
Why and how this problem is solved.?
Check that your OrderModify() actually worked . . . and if not report the fact and the error and anything else to help you fix it . . .
Read this and fix your code: What are Function return values ? How do I use them ?
i think problem with slippage
how fixed this problem .!
Is there one works for Expert with Broker ECN
Without problems.? I do not think so.!
Please, if there is a way to work with ECN Broker without problems
Please put the way
If there Expert works with Broker ECN please put it here.!
That thread has nothing to do with slippage . . . it is all to do with this: Requirements and Limitations in Making Trades
Have you added code to check the return values from your Trade Functions ? why are you ignoring good advice ?
thank you mr.raptoruk
i have new code but different result
some time -10.00
i want fixed this code work with ECN
this very simple code
Is your code modify the trade with stop settings using the orderopenprice of the trade ??
and if it is very simple code and it is not using the orderopenprice to modify the trade
then how do you have to change it that it does ??
Please enable the necessary setting in your browser, otherwise you will not be able to log in.