This script is designed to be used on Swing and Position style approaches. Based on moving averages that I use with the integration of a weekly moving average that is visible on the daily chart /all timeframes.
The moving averages are: 9EMA; 21EMA; 10 week SMA ; 50EMA; 150EMA; and 200EMA.
Base script from CaptainBrett with Matt Caruso's chat with Richard Moglen showing me that this can be done on Tradingview. When searching for the script, I couldn't find it within the public library.