MACD signals in the Watch List (help) May 10, 2014 11:34AM |
Registered: 10 years ago Posts: 75 |
Re: MACD signals in the Watch List (help) May 11, 2014 06:05AM |
Registered: 11 years ago Posts: 615 |
def Value = MACD(2, 3, 2, "EMA" ).Value; def Avg = MACD(2, 3, 2, "EMA" ).Avg; def BuyAlert = Value > Avg; def SellAlert = Value <= Avg; addlabel(BuyAlert and !BuyAlert[1], "Buy " ); addlabel(SellAlert and !SellAlert[1], "Sell " ); assignbackgroundcolor(if BuyAlert then color.dark_green else if SellAlert then color.dark_red else color.current);
Re: MACD signals in the Watch List (help) May 11, 2014 08:41AM |
Registered: 10 years ago Posts: 75 |