jealous / stockstats

Supply a wrapper ``StockDataFrame`` based on the ``pandas.DataFrame`` with inline stock statistics/indicators support.
Other
1.31k stars 299 forks source link

RSI missing #1

Closed think-nice-things closed 8 years ago

think-nice-things commented 8 years ago

very useful package, thanks!

What I'm missing is RSI (see https://en.wikipedia.org/wiki/Relative_strength_index) and a bit more verbose documentation ;-)

Would it be hard to implement RSI?

jealous commented 8 years ago

Mm... Yes, I remember that I have tried to implement it before and the algorithm is quite different from the others. It's hard to utilize the tools supplied by pandas. I will do some investigation and let you know if I have the effort to implement it.

jealous commented 8 years ago

RSI is implemented in the latest version. Please use stock['rsi_6'] to access 6 days RSI. And 6 can be changed to other window sizes.

think-nice-things commented 8 years ago

thanks!