i dont know pine script but here i used some free ones and merged them and modified some especially smoothed stoch rsi is Good to decide when buy coz i modified it and when fast K value is over D value it changes color visually better this way also rsi is shown as area o histogram but if u dont like u can change to line for stoch rsi i unclick xtrigger (d value) for better appearance