Multi-TimeFrame (MTF) MACD Indicator for ThinkorSwim

Going above and below the zero line is the equivalent of going from positive to negative and vice versa. So the current MACD indicator is doing exactly what you're looking for.

Go into the indicator's settings and set Show breakout signals from No to Yes.

If it can also show macd crosses above/below zero for three higher timeframes, that would be great, e.g. when looking at the 30M, seeing arrows from the 1hr, 2hr, & 4hr crosses. The ability to select from a dropdown which four timeframes to plot would be awesome.

Check this version https://usethinkscript.com/threads/multi-timeframe-mtf-macd-indicator-for-thinkorswim.474/
 

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

Looking for help with creating an indicator that plots an arrow below/above the price when the macd crosses above/below the zero line. So not every time the macd goes positive/negative, just when it crosses the zero line.

If it can also show macd crosses above/below zero for three higher timeframes, that would be great, e.g. when looking at the 30M, seeing arrows from the 1hr, 2hr, & 4hr crosses. The ability to select from a dropdown which four timeframes to plot would be awesome.

Lastly, as a bonus, adding one additional dropdown where I can select a timeframe, and it will plot a chart bubble for that timeframes macd cross above/below zero, so that it will stand out from the other arrows. Lmk if clarification is needed – thanks in advance.
Checkout this indicator called Beep Boop, it's MACD. It doesn't do arrows but it does color the bars above or below the zero line.

https://usethinkscript.com/threads/beep-boop-indicator-for-thinkorswim.5216/
 
Hopefully this shows it better - looking for a MTF version of this. Only shows arrows when the macd line crosses zero - don't care about the macd/signal line cross (histogram).
Fs8BCet.png
 
Hopefully this shows it better - looking for a MTF version of this. Only shows arrows when the macd line crosses zero - don't care about the macd/signal line cross (histogram).
MTF MACD Upper Chart Indicator w/ MACD crosses Zero Signals
shared chart link: http://tos.mx/mdLjwTI Click here for --> Easiest way to load shared links
g71gKil.png

Displayed above is your 15min chart overlaid on a 5min chart.
Please note:
It is not possible to suppress the printing of the multiple arrows It takes 3 bars of a 5min chart for a 15min bar to close.
Those arrows represent the number of arrows that will repaint until the higher aggregation closes.
Ruby:
input fastLength = 4.5;
input slowLength = 10;
input MACDLength = 20;
input SHOW_VERT_U = no;
input SHOW_VERT_D = no;

input averageType = AverageType.EXPONENTIAL;
input period = AggregationPeriod.hOUR;
def Value = MovAvgExponential(close(period = period), fastLength) - MovAvgExponential(close(period = period), slowLength);

plot uparrow = value crosses above 0;
uparrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
uparrow.SetDefaultColor(color.blue);

plot dnarrow = value crosses below 0;
dnarrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
dnarrow.SetDefaultColor(color.blue);
 
Hello @BonBon , I need some help with the MTF_MACD indicator. I cannot seem to get it to work. I fixed the missing quotes but it still did not work. I copied the updated version on the thread but that did not work either. Please can you post a TOS link for this script. Thanks
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
407 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