Relative Difference Of Squares Oscillator [CC]

The Relative Difference Of Squares Oscillator was created by Marco Alves (Stocks and Commodities Aug 2020 pg 10) and this is a heavily customized version of his indicator that works for single stocks instead of the entire market. I have included extra buy and sell signals to account for strong signals vs normal signals based on some user feedback I got. Buy when the line turns green and sell when it turns red. Keep in mind that this is a lagging indicator so good for trend confirmation.

Let me know if there are any other scripts you would like to see me publish!
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Greetings "CC"
I just wanted to thank you for your work in publishing the codes, your templates are extremely rigorous.
+1 Svara
I really like the info that the bars provide at lenght 14 as it is easy to get lost in the data. It will be useful if you could add the option to add the dotted zero line and perhaps oversold and OB lines also. cheers