StopLoss trigger not executed

 

Somewhere after the start function I wrote a code that was supposed to be triggered by a stoploss. But it was never executed; Print ("SL/TP") was not executed. Any idea?


int start()

{

...

if ( OrderClosePrice()==OrderStopLoss() )
Print ("SL/TP");

...

}

 

Somebody, please help ...

 

You can't compare two double variables so easy. Use NormalizeDouble() function.

Reason: