|
Create another Variable like this just below the ADXPeriod
extern int DIPeriod = 5;
Now go to the following lines:
PlusDiBuffer[i]=iMAOnArray(PlusSdiBuffer,Bars,ADXPeriod,0,MODE_EM A,i);
and
MinusDiBuffer[i]=iMAOnArray(MinusSdiBuffer,Bars,ADXPeriod,0,MODE_E MA,i);
change ADXPeriod to DIPeriod.
Hope this helps.
Maji
|