Milindbagul

EMA CrossOver Bars

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