That usually means that OrderModify() has nothing to do with the parameters it's called with.
I.e all the levels are the same the modified order has already.
Hint: check if the modification parameters are different from existing ones before the call.
I.e all the levels are the same the modified order has already.
Hint: check if the modification parameters are different from existing ones before the call.
Not sure, but could this be the problem? OrderModify() is like OrderSend() and must
have the spread difference between current Ask/Bid and new Stoploss level.
If OrderProfit() is very low, could OrderOpenPrice() be too close to current Ask/Bid,
then the spread may come into play when trying to set new Stoploss level. Result
then is OrderModify() - Error # 1 in the Experts tab in Terminal pane.
Again, not sure, just a thought.
if(OrderProfit()>0) { OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,GreenYellow); }Wackena
This is definitely the problem as OrderModify() is called with the same parameters whenever OrderProfit is positive in your code.

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
"Expert Name".USDJPY,M15:OrderModify-Error # 1
mql error code 1 is "No error returned, but the result is unknown."
Could someone advise what could cause this type error?
Thanks,
Wackena