MACD with Bollinger Bands Indicator for ThinkorSwim

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:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

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);

Not exactly. I would like to be able to check the watchlist for the bollinger band levels. Is something like this possible?
 
Not exactly. I would like to be able to check the watchlist for the bollinger band levels. Is something like this possible?
Sure, here is MACD Bollinger Band Level Watchlist.

This script defaults to displaying the upper band level number
Change the hashtags to display other levels.
Ruby:
input price = close;
input BBlength = 10;
input BBNum_Dev = 1.0;
input MACDfastLength = 12;
input MACDslowLength = 26;
input MACDLength = 5;

def MACD_Data = MACD(fastLength = MACDfastLength, slowLength = MACDslowLength, MACDLength = MACDLength);


plot BB_Upper = reference BollingerBands(price = MACD_Data, length = BBlength, Num_Dev_Dn = -BBNum_Dev, Num_Dev_Up = BBNum_Dev).UpperBand;

#plot BB_Lower = reference BollingerBands(price = MACD_Data, length = BBlength, Num_Dev_Dn = -BBNum_Dev, Num_Dev_Up = BBNum_Dev).Lowerband;

#plot BB_Midline = reference BollingerBands(price = MACD_Data, length = BBlength, Num_Dev_Dn = -BBNum_Dev, Num_Dev_Up = BBNum_Dev).MidLine;
 
Last edited:
Sure, here is MACD Bollinger Band Level Watchlist.

This script defaults to displaying the upper band level number
Change the hashtags to display other levels.
Ruby:
input price = close;
input BBlength = 10;
input BBNum_Dev = 1.0;
input MACDfastLength = 12;
input MACDslowLength = 26;
input MACDLength = 5;

def MACD_Data = MACD(fastLength = MACDfastLength, slowLength = MACDslowLength, MACDLength = MACDLength);


plot BB_Upper = reference BollingerBands(price = MACD_Data, length = BBlength, Num_Dev_Dn = -BBNum_Dev, Num_Dev_Up = BBNum_Dev).UpperBand;

#plot BB_Lower = reference BollingerBands(price = MACD_Data, length = BBlength, Num_Dev_Dn = -BBNum_Dev, Num_Dev_Up = BBNum_Dev).Lowerband;

#plot BB_Midline = reference BollingerBands(price = MACD_Data, length = BBlength, Num_Dev_Dn = -BBNum_Dev, Num_Dev_Up = BBNum_Dev).MidLine;

Thanks @MerryDay! This is close lol is there anyway I can get the watchlist level column for the lines and dots?
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
370 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top