No good idea, at least in history, you should save many bars, as servers will give you just last about 2000 bars (every broker is different there) and then you will have gaps on charts wherever you did not open a chart on that timeframe in the last 2000 bars. Put both to script folder and run them by drag and drop to a chart.
Xard777 takes also my findings about atr-bands seriously (posted here since the beginning of the board) as deactivated tma1 (in blue) uses similar calculation. After spikes with strong trend change you see that his used tma2 uses repainting tma code (red bands with bars), because it turns down although new highs still come before the strong breakdown of the price.
Activate (as far as I see) non-repainting tma1 with higher setting than 2 on "tma2atrmulti", that's similar to what I use as biggest sl-point in spiky environment for years.
Thin yellow is mladen's original tma, thin blue is atr-bands 2 (all with Xards default settings 56 100 3 for comparison, zoomed in on a 17 inch monitor). Why do you prefer the repainting version? The candle color can also repaint, if it does not show the same signal as the white stepMa-like line, but the rest does not repaint.
Pic also shows how fast the oscillators are, which we always trade in direction of bands as xard said.