bnnbJ: I need to return the total number of lots opened, but I could only find the number of lots for the current selected order.
OrderSelect loop over all orders. Sum OrderLots.
Do you really mean total number of lots opened, or do you mean opened by your EA on you pair?
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
Hello, I am trying to write an EA. I need to return the total number of lots opened, but I could only find the number of lots for the current selected order. Is there a selector in MQL4 like * in other programming languages? Thank you.
Jinstin