Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
What's wrong with my RSI Calculation?

Hi All. Was messing around in a notebook trying to learn more of the mathematics of trading today. Was calculating a 14-RSI for Tesla (TSLA), but my end calculation for yesterday was 57.423881 while around 78.7 was what was being reported. Did it again by hand and still came out with the same answer.

I referenced this for the calculation: http://cns.bu.edu/~gsc/CN710/fincast/Technical%20_indicators/Relative%20Strength%20Index%20(RSI).htm

Thanks in advance for any feedback!

1 response

So this works, but I do not understand why my calculation "by hand" was so far off. Still would like feedback. Thanks!