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-
See here -> https://www.mql5.com/en/forum/123668
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!