iCustom()

 

Hi,

How do I use the mama-indicator in my EA, e.g what arguments do I enter iCustom????)

http://www.greattradingsystems.com/MAMA-metatraderindicator.

Thanks

 
iCustom( string symbol, int timeframe, string name, ..., int mode, int shift)

Name is the name of the indicator file (without the extension)

.... is the extern parameters . .

extern double FastLimit=0.5;
extern double SlowLimit=0.05;

Mode is the buffer number, it has 2 buffers

   SetIndexLabel(0,"#FAMA");
   SetIndexLabel(1,"#MAMA");

 
RaptorUK:
iCustom( string symbol, int timeframe, string name, ..., int mode, int shift)

Name is the name of the indicator file (without the extension)

.... is the extern parameters . .

Mode is the buffer number, it has 2 buffers



Thanks..
 
#define MAMA_NAME = "_2523MAMA" // What you saved the file as without the extension .ex4
#define FAMA 0                  // From the index labels.
#define MAMA 1
double FastLimit=0.5;           // From the externals
double SlowLimit=0.05;
double result = iCustom(NULL,0, MAMA_NAME, FastLimit, SlowLimit, FAMA, shift);
 

if you want to use the indicator default settings you can leave out the indicator extern parameters