Daily SMAs on any resolution!

Quality of life script I just threw together, figured some of you might get some use out of it
Does what you'd think

Could edit the security function (or add another) to return the info at any resolution
Remove from Favorite Scripts Add to favorite indicators
study(title="Daily Simple Moving Averages", shorttitle="Daily SMAs", overlay=true)
sma1=input(50,"SMA Length", type=integer)
sma2=input(100,"#2", type=integer)
sma3=input(200,"#3", type=integer)
sa(x) => security(tickerid, "D", sma(close,x))

plot(sa(sma1), color=purple, linewidth=2)
plot(sa(sma2), color=blue, linewidth=2)
plot(sa(sma3), color=black, linewidth=2)


Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out