study(title="EMA MA Cross", overlay=true)
short = ema(close, 21)
long = sma(close, 20)
plot(short, color = red)
plot(long, color = green)
plot(cross(short, long) ? short : na, style = cross, linewidth = 4)
short = ema(close, 21)
long = sma(close, 20)
plot(short, color = red)
plot(long, color = green)
plot(cross(short, long) ? short : na, style = cross, linewidth = 4)