please someone can help me ????

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
Hello ;
can you help me about this problem ? I would like to calculate the moving average of the another MM for example : the MM20 of MM13
when I write the code like this it 's right and we can view the result
// here we delare the buffers ...
for(int i=0; i<limit; i++) {
ExtMapBuffer1[i]= iMA(NULL,0,13,0,MODE_EMA,PRICE_CLOSE,i);
ExtMapBuffer2[i]= iMAOnArray(ExtMapBuffer1,0,20,0,MODE_EMA,i) ;
}
but here we must view MM13 via ExtMapBuffer1 and then I thought to replace and create another array in order to change ExtMapBuffer1
// we declare the new array
double tableau [];
for(int i=0; i<limit; i++) {
tableau[i]= iMA(NULL,0,13,0,MODE_EMA,PRICE_CLOSE,i);
ExtMapBuffer1[i]= iMAOnArray(tableau,0,20,0,MODE_EMA,i) ;
}
but with this code it's blank !!
Someone can tell me please where is the problem and how we create it ?
thanks !!