My indicator does not look like the built-in Stochastic RSI indicator from TradingView. How can I get the familiar look, to duplicate the st-RSI indicator?
Here is the screen shot that shows the difference between my code and the TradingView indicator
//@version=3
study("Stoch-RSI")
//smooth = (close + close[1] + close[2]) /3
smooth = close
p_k = stoch(rsi(smooth,14),high,low,14)
p_d = 0.0
for i = 1 to 3
p_d := p_d + p_k[i]
p_d := p_d / 3
plot(p_k*30,color=orange)
plot(p_d*30,color=purple)
plot(close)
The curve should look the same as the tradingview indicator