Download MetaTrader 5

A question about 'iCustom'.

To add comments, please log in or register
Fa Cao
1141
Fa Cao  

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)?

Simon Gniadkowski
Moderator
18023
Simon Gniadkowski  
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.
whroeder1
15299
whroeder1  
  1. Learn about iCustom Detailed explanation of iCustom - MQL4 forum
  2. Look at the Stochastic Indicator code
  3. Think about what RaptorUK said.
Fa Cao
1141
Fa Cao  
thanks
To add comments, please log in or register