I want to send alert on tradingview with color change. This is an indicator named Trix. But dont have alert options. i try to add alert condition but dont work.
study(title="TRIX (Custom)", shorttitle="TRIX (Custom)") length = input(6, minval=1) out = 10000* change(ema(ema(ema(log(close), length), length), length)) upColour = #33CC33 downColour = #FF5555 hline(0, title="Zero") plot(out, color = out[1] > out ? downColour : upColour) *alertcondition(upColour, title="Buy", message="green buy") alertcondition(downColour, title="Sell", message="red sell")*