orderPrice != OrderStopLoss()) {
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 (2013)
double newPrice = NormalizeDouble(orderPrice, Digits);Now newPrice is not orderPrice. Use orderPrice.
Thank you!
Is this true ?
res = OrderModify(OrderTicket(), orderPrice, orderPrice, OrderTakeProfit(), 0, Orange);
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 coded a break even code.
But when I run it, sometimes it shows order modify error 1.
I just want to move stoploss to zero(0) but I tried to use = 1 to avoid order modify error1
Can you advice where the problem?