Apply Template real
This script allows you to change a template and a timeframe on all open charts. By default, a template name (Name of Template) is set to <SetCharts>.
You can create your template setting with this name and save it to use easly or select any template name you like. If you select other name than a default one, you have to write it any time.
The good way to change timeframe is to simply set a needed timeframe before the launch and leave the current setting for the timeframe.
Now it works very well.