Manchester NH
Experience: Advanced
Platform: Thinkorswim
Broker: TD Ameritrade
Trading: Small Caps
Posts: 90 since Feb 2014
Thanks Given: 31
Thanks Received: 55
|
I came up with something like this. I use it for different indicators to get a ring or ding when it crosses my desired value. I think this is what your are looking for.
def SELL = RSI_EMA crosses below 30 ;
def BUY = RSI_EMA crosses above 70 ;
alert(SELL, "SELL", Alert.BAR, Sound.Ding);
alert(BUY, "BUY", Alert.BAR, Sound.Ring);
You would just put this at the very bottom or the existing RSI_EMA code that you need to copy in to a new study.
|