Not logged in
Viewing 1 post (of 1 total)

Forums>AlgoWizard / EA Wizard>Application Support>Bug in Indicator average function

  • #235825 |
    Participant
    45 Posts

    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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.