trigger after position closed ?

 

Is there a trigger, which will inform me when position is closed by stop loss ?

or i have to check every sec for history ?

thanks

 
waza123:

Is there a trigger, which will inform me when position is closed by stop loss ?

or i have to check every sec for history ?

thanks

https://www.mql5.com/en/docs/basis/function/events#ontradetransaction
Documentation on MQL5: Language Basics / Functions / Event Handling Functions
Documentation on MQL5: Language Basics / Functions / Event Handling Functions
  • www.mql5.com
Language Basics / Functions / Event Handling Functions - Reference on algorithmic/automated trading language for MetaTrader 5
 
Or OnTrade.
Reason: