Checking orders closed on StopLoss

 

Hi All,


I am struggling with writing a code to detect orders closing with SL.  I know that in MQL4 we can compare OrderClosePrice() against the OrderStopLoss(), but don't know what to use in MQL5. I am new to it.

Thanks for help

 
i think you can get infor from comment.
 
tuoitrecuoi:
i think you can get infor from comment.
I cannot find any examples.  I want to count consecutive losses and then for example I'd send email when there was more that 5 of them.
Reason: