OPEN-SOURCE SCRIPT
S&R study of different MAs and lengths

This is a study on different moving averages across different lenghts to see which lengths or ma types have the most S&R action on them.
In the data window you can see the number of support and resistance instances for each length divided by the number of price crosses of the ma
Also you can see in time adjusted which % of the time that line acted as a S&R
Then it lets you select the best MA and length and see with the bar colors the areas where it behaved as S&R or when it didn't
In the data window you can see the number of support and resistance instances for each length divided by the number of price crosses of the ma
Also you can see in time adjusted which % of the time that line acted as a S&R
Then it lets you select the best MA and length and see with the bar colors the areas where it behaved as S&R or when it didn't
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.