iCustom return Values are different from chart indicator

 

Hi Guys,


I am using iCustom to get values from QQE-Histogram indicator.

But returned values of the iCustom() are different from the values printed on the chart by indicator. I have encounter same before with different indicator and give up.

Below is the sample of my iCustom() and the code of the QQE-histogram.mq4


Appreciate if anyone can point me what am I doing wrong here. 

         
// iCustom() Function :
	 double QQE0=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,0,0);
         double QQE1=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,1,0);
         double QQE2=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,2,0);
         double QQE3=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,3,0);
         double QQE4=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,4,0);
         double QQE5=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,5,0);
         double QQE6=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,6,0);
// Print Buffers :        
    Print(" QQE0 : ",QQE0);
    Print(" QQE1 : ",QQE1);
    Print(" QQE2 : ",QQE2);
    Print(" QQE3 : ",QQE3);
    Print(" QQE4 : ",QQE4);
    Print(" QQE5 : ",QQE5);
    Print(" QQE6 : ",QQE6);
    Print(" QQE7 : ",QQE7);
Files:
 
  1.          double QQE5=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,5,0);
             double QQE6=iCustom(Symbol(),0,"test\\qqe-histogram",5,14,4.236,60,40,true,false,false,false,false,false,false,6,0);
    Indicator only has 5 buffers [0… 4]
    #property indicator_buffers 5
    

  2. iCustom call is bogus.
    Indicator
    call
    extern string TimeFrame   = "Current time frame";
    extern int    SF          = 5;
    extern int    RSIPeriod   = 14;
    extern double WP          = 4.236;
    extern double UpperBound  = 60; 
    extern double LowerBound  = 40; 
    extern bool   Interpolate = true;
    extern bool alertsOn              = true;
    extern bool alertsSignalLineCross = false;
    extern bool alertsOnCurrent       = true;
    extern bool alertsMessage         = true;
    extern bool alertsSound           = false;
    extern bool alertsEmail           = false;
    
    double QQE0=iCustom(Symbol(),0,"test\\qqe-histogram",
          /*MISSING*/
          5,
          14,
          4.236,
          60,
          40,
          true,
          false,
          false,
          false,
          false,
          false,
          false,
       0,0);
    
              Detailed explanation of iCustom - MQL4 programming forum

 
William Roeder:
  1. Indicator only has 5 buffers [0… 4]

  2. iCustom call is bogus.
    Indicator
    call
              Detailed explanation of iCustom - MQL4 programming forum

@William,


Thank you for pointing the mistake !