This indicator is based off of the ChrisMoody CM_Laguerre PPO PercentileRank V2 Mkt Tops & Bottoms and The Lark's Laguerre PPO code.
I changed it to use basic moving averages rather than Laguerre, including changing the inputs to MA lengths so that you can coordinate the indicator with other filters more easily.
I also added the option to change the input price and changed the visual look and some other minor changes.