MqlRates rates[]; ArraySetAsSeries(rates,true); CopyRates(_Symbol, PERIOD_D1, 0, 20, rates); for(int i=0; i<20; i++){ Print(rates[i].high); }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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