use iteration loop
look in history pool
take notice of 'your' order
'your' = order with magic number you use when OrderSend()
IF looking in history pool AND OrderSelect() 'each' order
THEN use OrderMagicNumber() AND IF equal 'your' magic number THEN OrderProfit() will give u wat want
.
look editor help
goto "Trading functions" and c wat u can do ;)
.
maybe above ideas 4 u
Best
anyone can provide any sample codes?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
hi all,
what codes can help me find out if my last closed trade is win or lose
thanks