Checking result: SL or TP

 

Hi Gurus!


I make an order by this code:

ticket=OrderSend("EURUSD",OP_BUY,1,Ask,1,Ask-25*Point,Ask+25*Point,"",0,0,Green);


If this order closed (SL or TP), I'd like to check in my expert what kind of result had it: SL or TP?


Can you help me?

Thanks!

 
[sl] or [tp] are appended to the order comment.
 
phy:
[sl] or [tp] are appended to the order comment.

Thank you phy!

 
You can also to compare Price() to OrderStopLoss().
Reason: