186 1 12
EMAs that always show Daily regardless of timeframe
Remove from Favorite Scripts Add to Favorite Scripts
//@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)
You are a friggin genius. I've been trying to figure this out for months but my code isn't nearly as clean as yours. You ROCK!
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out