This script allows you to change the template and period of all open charts.
By default, the Template Name value is set to <_default>, and Change Period is false.
There are two ways to use this script:
First: you can specify the name of the template used (Template Name).
Second: you can save your preferred template as the default template (‘_default’) and just run this script. This is an easy way.
If you also want to change the timeframe of the chart, set the Change Period to true.
The new period will be loaded from the current chart.