Can iMAOnArray access 2-dimension array?

 

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 ...

 

I would like to bump this one. Did you find a good solution?

 

Or anyone else for that matter. Seems strange that the imaonarray function is confined to one dimensional arrays. Why?

 

how about this, what it returns?

double ema200 = iMAOnArray(Data, 0, 200, 0, MODE_EMA, 1 );