244 1
EMAs that always show Daily regardless of timeframe
Remove from Favorite Scripts Add to Favorite Scripts
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!
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out