KST(price, n=c(10,10,10,15), nROC=c(10,15,20,30), nSig=9,
maType="SMA", wts=1:NROW(n), ...)
n
, of the weight for each period
(need not sum to one).maType
function in case (1) above.EMA
, SMA
, etc. for moving average options; and note
Warning section. See ROC
for the rate-of-change function.
See MACD
for a generic oscillator.data(ttrc)
kst <- KST(ttrc[,"Close"])
Run the code above in your browser using DataLab