Read this thread: Can price != price ?
Thanks,, It solved..
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
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??