One of my favorite indicators as of yet. Can someone please help me with a watchlist for the zero line?
Your question is: can the coloring of the zeroline being translated to a watchlist?
The zeroline is painted green if the MACD is above 0 otherwise red.
Here is a watchlist that is painted green when MACD is greater than 0 else red.
Ruby:
# MACD above/below 0 Watchlist
input fast = 12; input slow = 26; input Length = 5;
plot nMACD = MACD(fastLength = fast, slowLength = slow, MACDLength = Length);
AssignBackgroundColor(if nMACD>=0 then color.green else color.red);
Last edited: