Fast stochastics
fpctkd
is not recommended. Usestochosc
instead.
[pctk,pctd] = fpctkd(highp,lowp,closep)[pctk,pctd] = fpctkd([highp lowp closep])[pctk,pctd] = fpctkd(highp,lowp,closep,kperiods,dperiods, dmamethod)[pctk,pctd] = fpctkd([highp lowp closep],kperiods,dperiods,dmamethod)pkdts = fpctkd(tsobj,kperiods,dperiods,dmamethod)pkdts = fpctkd(tsobj,kperiods,dperiods,dmamethod,'ParameterName',ParameterValue, ...)
|
High price (vector). |
|
Low price (vector). |
|
Closing price (vector). |
|
(Optional) %K periods. Default = |
|
(Optional) %D periods. Default = |
|
(Optional) %D moving average method. Default = |
|
Financial time series object. |
|
Valid parameter names are:
|
|
Parameter values are the character vectors that represent the valid parameter names. |
fpctkd
calculates the stochastic oscillator.
[pctk,pctd] = fpctkd(highp,lowp,closep)
calculates the fast stochastics F%K and F%D from the stock price datahighp
(high prices),lowp
(low prices), andclosep
(closing prices).
[pctk,pctd] = fpctkd([highp lowp closep])
accepts a three-column matrix of high (highp
), low (lowp
), and closing prices (closep
), in that order.
[pctk,pctd] = fpctkd(highp,lowp,closep,kperiods,dperiods,dmamethod)
calculates the fast stochastics F%K and F%D from the stock price datahighp
(high prices),lowp
(low prices), andclosep
(closing prices).kperiods
sets the %K period.dperiods
sets the %D period.
damethod
specifies the %D moving average method. Valid moving average methods for %D are Exponential ('e'
) and Triangular ('t'
). Seetsmovavg
for explanations of these methods.
[pctk,pctd]= fpctkd([highp lowp closep],kperiods,dperiods,dmamethod)
accepts a three-column matrix of high (highp
), low (lowp
), and closing prices (closep
), in that order.
pkdts = fpctkd(tsobj,kperiods,dperiods,dmamethod)
calculates the fast stochastics F%K and F%D from the stock price data in the financial time series objecttsobj
.tsobj
must minimally contain the seriesHigh
(high prices),Low
(low prices), andClose
(closing prices).pkdts
is a financial time series object with similar dates totsobj
and two data series namedPercentK
andPercentD
.
pkdts = fpctkd(tsobj,kperiods,dperiods,dmamethod,'ParameterName',ParameterValue, ...)
accepts parameter name/parameter value pairs as input. These pairs specify the name(s) for the required data series if it is different from the expected default name(s). Parameter values are the character vectors that represent the valid parameter names.
Achelis, Steven B.Technical Analysis from A to Z.Second Edition. McGraw-Hill, 1995, pp. 268–271.