I am trying to reproduce this chart in R using quantmod, however I cannot seem to get the same result for the slow stochastic. Here is what I have tried so far:
library(quantmod, quietly=TRUE)
getSymbols("SPY", from="2013-01-01")
chartSeries(SPY, subset='last 3 months')
addSMI(n=5,slow=5,fast=1,signal=1,ma.type="SMA")
Well, first off, you're not going to be able to calculate slow stochastic with the
SMI(stochastic momentum index) function. :)Second, there's no
addStochasticsfunction. You need to usestochto calculate the value you need, thenaddTAto add it to the chart. The code below seems to get fairly close to the chart in your link.