how to detect if SL was triggered?

 

hi,

unfortunatelly cannot get this information from CDealInfo.

https://www.mql5.com/en/docs/standardlibrary/tradeclasses/cdealinfo

i will be very glad for a small exaple.

regards

Documentation on MQL5: Standard Library / Trade Classes / CDealInfo
Documentation on MQL5: Standard Library / Trade Classes / CDealInfo
  • www.mql5.com
CDealInfo - Trade Classes - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

Check the deal reason with ...

InfoInteger

Gets the value of specified integer type property

Reason: