50
EMAs that always show Daily regardless of timeframe
Open-source 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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
//@version=2
study("eDMAs", overlay=true)

// options
e1on = input(false, title="5 EDMA")
e2on = input(true, title="10 EDMA")
e3on = input(false, title="20 EDMA")
e4on = input(false, title="50 EDMA")
e5on = input(false, title="100 EDMA")
e6on = input(false, title="150 EDMA")
e7on = input(false, title="200 EDMA")

plot((e1on)?security(tickerid, "D", ema(close, 5)):na, title="5 EDMA", color=#970000, linewidth=1, style=line, transp=0)
plot((e2on)?security(tickerid, "D", ema(close, 10)):na, title="10 EDMA", color=red, linewidth=1, style=line, transp=0)
plot((e3on)?security(tickerid, "D", ema(close, 20)):na, title="20 EDMA", color=#FF9800, linewidth=1, style=line, transp=0)
plot((e4on)?security(tickerid, "D", ema(close, 50)):na, title="50 EDMA", color=yellow, linewidth=1, style=line, transp=0)
plot((e5on)?security(tickerid, "D", ema(close, 100)):na, title="100 EDMA", color=lime, linewidth=1, style=line, transp=0)
plot((e6on)?security(tickerid, "D", ema(close, 150)):na, title="150 EDMA", color=#00FFFF, linewidth=1, style=line, transp=0)
plot((e7on)?security(tickerid, "D", ema(close, 200)):na, title="200 EDMA", color=#4985E7, linewidth=1, style=line, transp=0)