using DEAL_REASON_TP

 

hi everyone

i trying to find if a order closed with the hitting the TP in mql5 

i see the DEAL_REASON_TP but i can not how i can use it ?

I'm more looking an example for using it

thanks

 
Seyedmasoud Hashemi :

hi everyone

i trying to find if a order closed with the hitting the TP in mql5 

i see the DEAL_REASON_TP but i can not how i can use it ?

I'm more looking an example for using it

thanks

Three use cases:

  1. Example: catching a Take Profit trigger
  2. Example: tracking the triggering of Stop Loss or Take Profit
  3. Close All if Take Profit activation
Reason: