The first element in the array is the time...
What is the problem?
.
int ArrayCopyRates( double&dest_array[], string symbol=NULL, int timeframe=0)
Copies rates to the two-dimensional array from chart RateInfo array and returns copied bars amount, or -1 if failed. First dimension of RateInfo array contains bars amount, second dimension has 6 elements:
0 - time,
1 - open,
2 - low,
3 - high,
4 - close,
5 - volume.
What is the problem?
.
int ArrayCopyRates( double&dest_array[], string symbol=NULL, int timeframe=0)
Copies rates to the two-dimensional array from chart RateInfo array and returns copied bars amount, or -1 if failed. First dimension of RateInfo array contains bars amount, second dimension has 6 elements:
0 - time,
1 - open,
2 - low,
3 - high,
4 - close,
5 - volume.
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
My code to retrieve the price is :-
double array_price[][6];
double array_price1[][6];
double array_price2[][6];
ArrayCopyRates(array_price,Symbol(),PERIOD_M5);
ArrayCopyRates(array_price1,Symbol(), PERIOD_M5);
ArrayCopyRates(array_price2,Symbol(), PERIOD_M5);
double EURUSD_LOW, EURUSD_HIGH,EURUSD_CLOSE;
Thanks