CopyRates result index
MqlRates rates[]; ArraySetAsSeries(rates,true); CopyRates(_Symbol, PERIOD_D1, 0, 20, 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); }
You agree to website policy and terms of use
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