Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I have a 2-dimension array:
double Data[5][2000];
The first dimension identifies 1 of 5 timeframes (0 = 1 minute, 1 = 5 minute, 2 = 15 minute, 3 = 30 minute, 4 = 60 minutes).
For each timeframe, the array holds up to 2000 data points.
I want to call the function iMAOnArray, using one of the 5 sets of 200 data points.
I tried this:
double ema200 = iMAOnArray( Data[1], 0, 200, 0, MODE_EMA, 1 );
This results in an error at compile time.
Do I have to use a loop to copy the 2000 elements to a 1-dimension array before calling iMAOnArray? Or is there a more efficient solution?
Thanks very much for any help ...