|
the buffers u assign value to, missed the index
ExtMapBuffer1[idx]=iMA(NULL,0,9,8,MODE_EMA,PRICE_CLOSE,idx);
ExtMapBuffer2[idx]=iMA(NULL,0,30,8,MODE_EMA,PRICE_CLOSE,idx);
ExtMapBuffer3[idx]=iMomentum(NULL,0,12,PRICE_CLOSE,idx);
you have to have loop to accomplish this. something like
int limit=Bars-IndicatorCounted();
for (int idx = 0; idx < limit; idx++)
{
ExtMapBuffer1[idx]=iMA(NULL,0,9,8,MODE_EMA,PRICE_CLOSE,idx);
ExtMapBuffer2[idx]=iMA(NULL,0,30,8,MODE_EMA,PRICE_CLOSE,idx);
ExtMapBuffer3[idx]=iMomentum(NULL,0,12,PRICE_CLOSE,idx);
}
by using double ExtMapBuffer1 ... u are creating new variables and not using the original buffers
|