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.