Milindbagul

EMA CrossOver Bars

303 0 36
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)
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
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
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out