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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?