Fast-Medium QG3

Color coded moving average cross overs.
Edited by Enkindel, original code by ChrisMoody, QG3 system by QuadG
Remove from Favorite Scripts Add to Favorite Scripts
// Created By User ChrisMoody / Modified By Enkindel using QG3 System by QuadG
study(title = "Fast-Medium QG3", shorttitle="Fast-Medium QG3", overlay=true)

src = close, len = input(3, minval=1, title="Fast EMA")
src2 = close, len2 = input(10, minval=1, title="Medium EMA")
src3 = close, len3 = input(20, minval=1, title="Slow MA")

emaFast = ema(src, len)
emaMedium = ema(src2, len2)
smaSlow = sma(src3, len3)

plot_color = emaFast >= emaMedium and emaMedium >= smaSlow ? lime : emaFast < emaMedium and emaMedium < smaSlow ? red : yellow

p1 = plot(emaFast, title="EMA Fast", style=line, linewidth=4, color = plot_color)
p2 = plot(emaMedium, title="EMA Medium", style=line, linewidth=3, color = plot_color)

fill(p1, p2, color=silver, transp=60, title="Fill")
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