Reply

Bug in Indicator average function

0 replies

Steve Green

Subscriber, bbp_participant, community, 47 replies.

Visit profile

5 years ago #235825

Hi All,

 

I’m struggling to return the same value as the mt4 chart value when I use the “Indicator average” function on Volume in EA wizard. I even tried the below code in a custome function but with no luck.  lv_volume variable below does return the same value as the mt4 chart.

 

double vol[14];
ArraySetAsSeries(vol, true);

for(int i=1;i<=14;i++)
{
vol[i]=iVolume(NULL,0,i);
}

lv_avgvolume = iMAOnArray(vol,14,14,0,1,1);
lv_volume = iVolume(NULL,0,1);

 

Thanks in advance

 

Kind Regards
Steve

0