i have tried to look moving averages on time-frame dimension in this script rather than making combination of look back period length
script include type of moving average selection and plotting that on 5 user specified time frames. Allow repaint feature using security function has also been allowed in script.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.