Sometimes you have higher frequency data and you need to get a slower timeframe analysis, it can be accomplished with this undocumented but real powerful feature of by.period:
getSymbols("SPY", src="yahoo")
SPY$wklyRSI <- xts:::by.period(SPY, RSI, period="weeks", n=2)
No comments:
Post a Comment