I 've attached some screenshot to illustrate the matter, it seems I cannot paste it directly in the editor
Files:
OrdersHistoryTotal is for closed orders in MQL4. Use OrdersTotal if you want to now the number of open orders on MetaTrader 4. Please reference the documentation.
Fadsel:
Hello There,
OrdersHistoryTotal() always returns zero, even though there are trades on my terminal during back testing with the strategy tester,
Are there any limitations of the Strategy Tester that we should know of.
I am using the Latest Version of MT4
OrdersHistoryTotal() does work in the tester.
Why do you think that it doesn't?
Fadsel: OrdersHistoryTotal() always returns zero,
It will always return zero until the first opened order closes. Your image shows nothing of use.

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 There,
OrdersHistoryTotal() always returns zero, even though there are trades on my terminal during back testing with the strategy tester,
Are there any limitations of the Strategy Tester that we should know of.
I am using the Latest Version of MT4