The idea is the same like in my other S/R script to look for areas of potencial reversals
You can either use it as moving average as cheatcountry intended or you can add S/R lines. If you want to look at more detailed, please visit cheatcountry's script where explains idea behind his moving average.
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 publications is governed by House rules. You can favorite it to use it on a chart.
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.