
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
His function returns the last order type. If you need other information about the last order, or about the last N closed orders, then my code would be better: Could EA Really Live By Order_History Alone? - MQL4 forum
Above code provided worked great :) Thank you very much!
Thanks for the push dabbler. Here is the code I came up with -- it seems to work. It was a good learning experience.
Assumed to be a global input variable. Corrections to posted code is left as an exercise for the reader.