2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: ma31.4034
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: stoploss1.3898
2009.09.16 08:03:05 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
Try replacing your conditional with the following.
CB
if (NormalizeDouble(ma3 - OrderStopLoss(), 8) == 0)
Sorry - should have posted:
if (NormalizeDouble(ma3 - OrderStopLoss(), 8) != 0)
CB
I assumed thats what you meant and tried it without luck
Ok.
Assumption:
- Error 1 is caused due to all parameters issued in OrderModify() being identical to those already associated with the existing order.
So potential cause is either:
- Difference between the methodology between the 2 comparisons ie. yours vs. MT4 internal - invoked by OrderModify()
or
- One of (or both) the numbers have changed from one comparison to the other.
Does that seem sound?
CB
OK, next step. Reaplace
void checkstop1() { if(NormalizeDouble(ma3,4) != NormalizeDouble(OrderStopLoss(),4)) { OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(ma3,4), OrderTakeProfit(),0,Blue); Print("stoploss",DoubleToStr(OrderStopLoss(),Digits)); Print("ma3",DoubleToStr(ma3,Digits)); Sleep(5000); } }
to
void checkstop1() { if(NormalizeDouble(ma3,4) != NormalizeDouble(OrderStopLoss(),4)) { Print("Bid - ",MarketInfo(OrderSymbol(),MODE_BID)," type - ",OrderType()," stop - ",OrderStopLoss()," newstop - ",ma3); OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(ma3,4), OrderTakeProfit(),0,Blue); //Print("stoploss",DoubleToStr(OrderStopLoss(),Digits)); //Print("ma3",DoubleToStr(ma3,Digits)); Sleep(5000); } }
and show us.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I've searched for ordermodify error 1 but it still hasn't helped. The system keeps giving me order modify error 1 but there seems to be no logical reason...