RSI and MACD study alert

D

drkellog

New member
I am trying to make a STUDY that will ring a bell when the RSI is below 30 and the MACD is above the zero line. Can anyone help me fix my code so it will RING. Its not ringing. A bonus would be if It could somehow plot it also but not necessary. Here is my code...

def Bearish = RSI("length" = 14, "over bought" = 70, "over sold" = 30)."RSI" is greater than or equal to 70 and MACD()."Value" is less than 0;
Alert(Bearish, " RSI Possible SIGNAL DOWN ", Alert.BAR, Sound.Ding);

def Bullish =
RSI("length" = 14, "over bought" = 70, "over sold" = 30)."RSI" is less than or equal to 30 and MACD
()."Value" is greater than 0;
Alert(Bullish, " RSI Possible SIGNAL DOWN ", Alert.BAR, Sound.Ding);
 
Last edited by a moderator:

Top