The periods can be changed in the settings.
It also comes with different colours for each lookback period.
I also left some lines which care commented out using the double slash '//' in case one wants to add alerts. Some sample code is left - you can just uncomment the lines out and the visual placeholders and alert conditions will be defined.
Particularly useful when you have a limit to the number of indicators you can add to you chart. Instead of adding 5 separate indicators, add just one .
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.