Wjadevries

WJA double EMA

111 0 5
Simple indicator with two exponential moving averages and crossover alert.
Why didn't this exist already?
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("WJA double EMA", overlay=true)

slowperiod = input(50, title="Slow EMA period", minval=1, type=integer)
fastperiod = input(20, title="Fast EMA period", minval=1, type=integer)

slowema = ema(close, slowperiod)
fastema = ema(close, fastperiod)

plot(slowema, color=blue, linewidth=2, title="Slow EMA")
plot(fastema, color=fuchsia, linewidth=2, title="Fast EMA")

plot(cross(slowema,fastema) ? fastema : na, style=circles, linewidth=4, color=slowema>fastema ? red : green)

alertcondition(cross(slowema,fastema), title="EMA cross", message="EMA cross")
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out