https://medium.com/@betashorts1998/smoothing-rsi-using-a-for-loop-in-pine-script-and-why-its-worth-it-0c058d025b5b