Is there a function that will check to see Order has been closed out due to s/l or t/p

 
Hi All,

A little help please - Is there a function that will check to see Order has been closed out due to s/l or t/p? I'm struggling to see if a trade has been closed out, is there a trade status? I tried to see if (OrderClose() == true) would work but that function as I see it to close the trade.

thanks!
 

LP
Look through the Orders by use of https://docs.mql4.com/trading/OrdersHistoryTotal
If th OrderOpenPrice equals ehe SL or TP, thats what closed it :)
Also some brokers alter the OrderComment to show [sl] or [tp]
Good Luck
-BB-

 
Reason: