MQL4 Reference Predefined variables Bars
int counter=1; for(int i=1; i<=Bars; i++) { Print(Close[i-1]); }