HAMa Step Histo

 

All,

How do it get the two values presented by this indicator using iCustom? I've tried the following and other variations and it's not working.

       iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 0, i);
       iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 1, i); 

 

Thanks in advance!! 

Files:
 
Detailed explanation of iCustom - MQL4 forum

Especially defining the name. Your file contains an x, your iCustom does not.
 

I don't think that's it. I've used it many times before and I got it to work. These all work perfectly, but the one mentioned above does not.

      HP10CloseCurr       = iCustom(NULL, HigherPeriod, "MovingAverages10EMA", 0, i);        
      HPCloseCurr         = iClose(NULL,  HigherPeriod, i);
      HPMACDHistogramCurr = iCustom(NULL, HigherPeriod, "MACD", 0, i);
                  
      MA10CloseCurr     = iCustom(NULL, 0, "MovingAverages10EMA", 0, i);        
      MA10ClosePrev     = iCustom(NULL, 0, "MovingAverages10EMA", 0, i+1);
     
      MACDHistogramCurr = iCustom(NULL, 0, "MACD", 0, i);
      MACDHistogramPrev = iCustom(NULL, 0, "MACD", 0, i+1);
      MACDSignalCurr    = iCustom(NULL, 0, "MACD", 1, i);
      MACDSignalPrev    = iCustom(NULL, 0, "MACD", 1, i+1);     

  

Thanks in advance. 

 

I attached the wrong file, so I confused you. Here is the correct file.

Files:
 

The file's actual name is HAMa Step Histo. For some reason it puts a random letter in the name when I upload it.

Thanks in advance. 

 
RiversideDude:

The file's actual name is HAMa Step Histo. For some reason it puts a random letter in the name when I upload it.

Thanks in advance. 

Your indicator has the following externs . . .

extern int StepMode  = 1;
extern int MaMetod  = 3;
extern int MaPeriod = 6;
extern int Step = 5;
extern int CountBars = 1500;

 your iCustom() calls are . . 

 

 iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 0, i);
 iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 1, i); 

 you seem to be missing a parameter  . . .

 

By the way . . Please use the   SRC   button to post code: How to use the   SRC   button. 

Reason: