Download MetaTrader 5

Checking orders closed on StopLoss

To add comments, please log in or register
eseq
93
eseq  

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

Trinh Dat
39756
Trinh Dat  
i think you can get infor from comment.
eseq
93
eseq  
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.
To add comments, please log in or register