Single Timeframe EMA

This plots EMAs from higher timeframes on intraday charts. Very useful for finding areas of S/R
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Single Timeframe EMA", shorttitle="Single TF EMA", overlay=true)

len_ema_long = input(200, minval=1, title="Long Exponential Moving Average")
len_ema_mid = input(100, minval=1, title="Mid Exponential Moving Average")
len_ema_short = input(50, minval=1, title="Short Exponential Moving Average")
resCustom = input(title="Time interval (W, D, [min])", type=string, defval="D")

ema_long = security(tickerid, resCustom, ema(close, len_ema_long))
ema_mid = security(tickerid, resCustom, ema(close, len_ema_mid))
ema_short = security(tickerid, resCustom, ema(close, len_ema_short))
src = security(tickerid, resCustom, close)

s2 = cross(ema_long, ema_short) ? src : na
plot(ema_long, color=#FF9800, transp=0, linewidth=2)
plot(ema_mid, color=green, transp=0, linewidth=2)
plot(ema_short, color=#FF0000, transp=0, linewidth=2)
I believe this script already exists
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 العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder 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