Download MetaTrader 5

[Beginner] How to find out if last order was stopped?

To add comments, please log in or register
symbaa
5
symbaa  

The title says it all, how can I find out whether my last order was stopped (reached the stop loss) with MQL5? Is there an event, is there a way to find out within the onTick method?

Thanks in advance.

Rashid Umarov
Admin
12609
Rashid Umarov  
If Stop Loss trigger then this  position we be closed. It's simple. See also articles Trade Events in MetaTrader 5 and Orders, Positions, and Deals in MetaTrader 5

To add comments, please log in or register