Hey guys, thanks in advance. I’m trying to code up an algorithm that will do a simple moving average of an RSI. The algorithm functions, however the numbers created are incorrect. When I log the SMA of the RSI it is only logging in the SMA of the price of the underlying asset and not the SMA of the RSI.  Anybody have an idea what I’m doing wrong here?

Author