One more question: this is about calculating the slow stochastic %K.
How can one determine the slow stochastic %D?
I thought this would be simply something like this:
fast_stoch = FastStochasticOscillator(window_length=14)
slow_stoch_k = SimpleMovingAverage(inputs=[fast_stoch], window_length=3)
slow_stoch_d = SimpleMovingAverage(inputs=[slow_stoch_k], window_length=3)
Determining slow_stoch_k works fine but determining slow_stoch_d gives the error:
NonWindowSafeInput: Can't compute windowed expression SimpleMovingAverage([SimpleMovingAverage(...)], 3) with windowed input SimpleMovingAverage([FastStochasticOscillator(...)], 3).
I suppose this cannot be solved by using the built in function SimpleMovingAverage?
For this you have to write your own simple moving average?