Is anyone able to help me create an alert for the following indicator for when the line turns either green or red?
CODE:
study(title=Color EMA, shorttitle=CEMA, overlay=true)
len = input(10, minval=1, title=Length)
src = input(close, title=Source)
out = ema(src, len)
plot(out, color=out>out[1]?green:out<out[1]?red:blue, linewidth=2, transp=0, title=CEMA)