iCustom: Getting Values from an Indicator

 

I am confused as how to retrieve the values of custom indicators. Does the mode refer to the buffer number? The following is from the indicator:


//---- indicator buffers

double UpBuffer[];
double DnBuffer[];
double UpSignal[];
double DnSignal[];
double smax[];
double smin[];

double trend[];


and I'm using the following code in my EA to retrieve the value of trend[] where MyIndicator is the correct name of the indicator:


double norder=iCustom(NULL, 0, "MyIndicator",6,1);


Is this correct?

 
Looks right but are there any input parameters because your iCustom call doesn't have any?
 
Input parameters aren't necessary, defaults are hardcoded.
Reason: