Show us the screenshots.
deysmacro:
Show us the screenshots.
Show us the screenshots.
Why do you need screenshot?
This code shows 1 as a result on a new account without any trades.
int total=OrdersHistoryTotal(); Comment(total);
See this thread and my reply.
Thank you Thirteen. So, the name of OrdersHistoryTotal doesn't reflect to its function.
![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,
Why does OrdersHistoryTotal() show one more than the real value?
If I have say 12 closed trades, OrdersHistoryTotal() shows 13, even on a brand-new and "empty" account it shows 1.
Why? Is it a failure or am I wrong?
Thx