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