OrdersHistoryTotal fail

 

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

 
Show us the screenshots.
 
deysmacro:
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);
 
 
Thirteen:
See this thread and my reply.

Thank you Thirteen. So, the name of OrdersHistoryTotal doesn't reflect to its function.