Error, please help.

 

Hi All,,
I have a strange situation as follow:

MA1_DN=NormalizeDouble(MA1-ATR1,4);
..................
if (OrderStopLoss()!=MA1_DN)
{
Print("MA1_DN=",MA1_DN," OrderStopLoss=",OrderStopLoss());
OrderModify(OrderTicket(),OrderOpenPrice(),MA1_DN,0,0,Red);
}

It returns :

15:25:40 2005.03.31 01:00 test3 EURUSD,M5: MA1_DN=1.2932 OrderStopLoss=1.2932
15:25:40 2005.03.31 01:00 test3 EURUSD,M5: OrderModify error 1
15:25:40 2005.03.31 02:00 test3 EURUSD,M5: MA1_DN=1.2932 OrderStopLoss=1.2932
15:25:40 2005.03.31 02:00 test3 EURUSD,M5: OrderModify error 1

Actually, the MA1_DN is equal to OrderStopLoss.
But How does it pass the If(...) and print something???
Is the If(...) something wrong??

 
Read this thread: Can price != price ?
 
RaptorUK:
Read this thread: Can price != price ?

Thanks,, It solved..
Reason: