This script is for a simple moving average indicator. It is meant as an educational script with well formatted styling, and references for specific functions.
Example of how to apply and use Dynamic Zones with an indicator by injecting it's source into my adaptation of the original idea by Leo Zamansky, Ph.D., and David Stendahl. • Load your desired oscillating indicator on your chart (CCI, RSI, etc). • Load my "How To Use Dynamic Zones" indicator on your chart. • In the "How To Use Dynamic Zones" indicator settings...
Example how to automatically set the date range window to be backtested from X days or weeks ago to present. Additional options are also included to manually set the date range or to show entire range available. Normally when you change chart period it changes the number of days being backtested, which means as you increase the chart period (for example from 5min...