MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Predefined variables  Bars

 
int Bars
Number of bars in the current chart.
See also iBars().
Sample:
  int counter=1;
  for(int i=1; i<=Bars; i++)
    {
     Print(Close[i-1]);
    }
 Ask Bid