Yes. Loop through the Order's history to find the last one and check if it's a short or a long.
Oh wow, how did I not see that -_-
Cheers mate!
angevoyageur: Loop through the Order's history to find the last one and check if it's a short or a long.
| See also Could EA Really Live By Order_History Alone? - MQL4 forum |
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
I need to find out whether the last closed order was a short or long position for a specific symbol, is this possible?
If so please could you point me in the right direction with some of the functions I will need
Thanks.