This script functions in 2 modes, "intraday" & daily/weekly/monthly.
By changing your chart to any "intraday" timeframe, this mode will automatically switch based on which timeframe you are view on your TradingView charts.
INTRADAY: the script will show the "Dean Moving Average" (10ema on 15/min). NOTE: This 10ema on 15/min will calculate correctly even if using a 5 min chart.
DAILY/WEEKLY/MONTHLY: the script will show the 50 sma in green and 200 sma in purple. If you are viewing a daily chart, it will show the 50-daily sma, if you are viewing a weekly chart, it will show the 50-week sma, etc.
Any questions: DM me