HistoryTotal function


for example, forex

Often in order to find a position we need we have to «run» through all the list. For this we need to know the total number of positions and orders in the list of closed positions and deleted pending orders. The HistoryTotal() will help us to do this.

Format of the HistoryTotal() function:

   int HistoryTotal ()

This function returns the number of closed positions and deleted pending numbers, which are downloaded in the client terminal MetaTrader 4 in accordance with the current settings of the tab «Account history».

Example of the HistoryTotal() fuction usage:

   int pos;
   int total = HistoryTotal();
   for ( pos = 0; pos


Next article: "OrderClosePrice function"

+7 (495) 710-76-76
© 1998—2008 «Alpari»

close

Your Personal Area

For alpari.classic enter your account number (a letter and 4 figures) and the code word for the Personal Area.

For alpari.micro account: enter your login (6 figures) and the password for MT.

Open an account!Forgotten your password?