Download MetaTrader 5

A question about 'iCustom'.

To add comments, please log in or register
Having a great idea? Share it on the traders' Forum!
Fa Cao
1141
Fa Cao 2013.11.25 04:54 

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
18001
Simon Gniadkowski 2013.11.25 08:31  
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
14532
whroeder1 2013.11.25 14:01  
  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 2013.11.26 00:03  
thanks
To add comments, please log in or register