A question about 'iCustom'.

 

just now I read a segment code as below:

double myMain=iCustom(Symbol(),0,"Stochastic",KPeriod,DPeriod,Slowing,0,0);

In this codes, “KPeriod” and “DPeriod” belong to " Stochastic" 's parameters, then I can;'t understand how "iCumtom()" can realized 'KPeriod' and 'DPeriod' and how these two parameters fit ‘Stochastic’ well ( whatever KPeriod and DPeriod are not firsrt parameters in Stochastic's parameters)?

 
vx0532:

just now I read a segment code as below:

In this codes, “KPeriod” and “DPeriod” belong to " Stochastic" 's parameters, then I can;'t understand how "iCumtom()" can realized 'KPeriod' and 'DPeriod' and how these two parameters fit ‘Stochastic’ well ( whatever KPeriod and DPeriod are not firsrt parameters in Stochastic's parameters)?

These parameters are the extern variables that are in the "Stochastic" Indicator. You either use the default values specified in the Indicator and do not specify them in the iCustom() call or specify them all in the iCustom() call.
 
  1. Learn about iCustom Detailed explanation of iCustom - MQL4 forum
  2. Look at the Stochastic Indicator code
  3. Think about what RaptorUK said.
 
thanks
Reason: