CopyRates result index

 

Hi

This mql5 code prints the oldest bar info first. 

How can I get array indexed so that the current bar on the chart is in index 0 and thus prints out first?

Thanks

MqlRates rates[20];
CopyRates(_Symbol, PERIOD_D1, 0, 19, rates);

for(int i=0; i<20; i++){
   Print(rates[i].high);
}
 
MqlRates rates[];
ArraySetAsSeries(rates,true);
CopyRates(_Symbol, PERIOD_D1, 0, 20, rates);
for(int i=0; i<20; i++){
   Print(rates[i].high);
   }