Milindbagul

EMA CrossOver Bars

385 0 56
EMA Cross Over Bars
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
//Created by Milind

study(title = "EMA CrossOver Bars", shorttitle="EMA CrossOver Bars",overlay=true)
ema1 = input(200, minval=1, maxval=300, title="EMA UpTrend")
ema2 = input(5, minval=1, maxval=100, title="EMA DnTrend")
shema = input(true, title="Show EMA Trend is Based On?")
usedEma = ema(close, ema1)
emaslow = ema(close, ema2)
trendup= ema(close, ema2) >= ema(close, ema1)
trendDn= ema(close, ema2) < ema(close, ema1)
emaUpColor() => trendup
emaDownColor() => trendDn
col = trendup ? blue : trendDn ? red : white
//plotarrow(trendup, colorup=teal, colordown=orange, transp=20)
barcolor(emaUpColor() ? blue: emaDownColor() ? red : na)
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体中文
繁體中文
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