Multiple Time Frame MACD Study
Three time frames packed into a single MACD? How is that possible? Check it out and see for yourself. The link to download this free custom indicator is embedded within the video. It’s very important you watch the video all the way through in order to understand what this indicator does, and how to adjust it to fit your needs. It will only work on time based charts. Sorry, tick and range charts are not supported. The idea for this indicator was based on feedback received from one of our viewers. Haven’t seen the video you’re looking for? Just drop us a note and we may end up doing a video on the topic of your choice. You can reach us several ways. You can leave a comment below, or connect with us via Facebook, Google+ and the www.hahn-tech.com webpage.
Link to study file: Chart_MTF_MACDSTUDY.ts
Lean More:
Would you like to learn how to master the chart settings on Thinkorswim? Click here for our 3 part series: Thinkorswim Chart Settings Tutorial
DISCLAIMER: I AM NOT A CERTIFIED FINANCIAL ADVISOR AND NOTHING IN THIS VIDEO OR TEXT IS AN ADVERTISEMENT OR RECOMMENDATION TO BUY OR SELL ANY FINANCIAL INSTRUMENT. NOR IS THIS VIDEO OR TEXT INTENDED TO INSTRUCT YOU ON HOW TO MAKE BUY OR SELL DECISIONS USING ANY OF THESE INDICATORS.
*Thinkorswim is a chart analysis platform offered by TD Ameritrade: www.tdameritrade.com
TD Ameritrade provides financial services including the trading of Stocks, Futures, Options and Forex.
Please be sure to share this page with your friends and colleagues. Leaving comments below is the best way to help make the content of this site even better.
Can this be coded to use 4 or 5 time frames?
Yes, it is possible to do that.
Hi Hahn, I would think that this MTF MACD indicator is untradable. Here is the reason, here are my time settings : 2 min, 5 min and 30 min. Color of histograms on 2 min chart are not “frozen” until the end of each 30 min. So, color of 15 histograms bars on 2 min chart ( i.e. 30 min / 2 min = 15 ) can keep changing until the end of each 30 min period. If a histogram bar was green on, say 6 th minute into a 30 min period ( for example 12:06 ), it’s color is entirely dependent on how the histogram on 30 min closes ( for example 12:30 ). So, if you entered a trade at 12:06 as the histo was, green, by the time 12:30 rolls around, the histo bar at 12:06 could have turned gray, indicating there was no agreement between histo bars between 2 min chart and 30 min chart, and you would be left wondering what happend to the green histo that was there when I entered the trade. I wish I could include couple of screen shots to clearly show this issue, but unfortunately it won’t allow me to paste screen shots here.
If this is your expectation, you should be using the second version of this indicator I published in the Strategy Guide section. Located here: https://www.hahn-tech.com/thinkorswim-strategy-guide-mtf/
When applying Multiple Time Frame analysis, there are two schools of thought. One is to use the current higher time frame candles, even though those signals are subject to change before the bar closes. This type of indicator cannot be back-tested. But it can certainly be traded. It just so happens to be the most popular way to use MTF analysis. Just because it’s they way human eyes look at each higher time frame. It’s only when you begin building a MTF study that these significant details become obvious.
The other method of MTF analysis is to avoid using the current higher time frame bars and only use higher time frame data from bars that have fully closed, and are no long subject to change. This type of MTF analysis produces signals which do not repaint, which also make them suitable for back-testing.
Now you understand why both versions of MTF MACD are included on our site. And you know where to find the one that is suitable for back-testing. Hope that clears things up.
Hey Pete, love this indicator, is there a way to convert this study into a strategy..?
I watched the video you made on that subject, but was not successful. I get an error message. was wonder if you’re able to help. Thank You.
All strategies are published under the “TOS Strategies” category, which you can access from the left-hand side menu. Here is a direct link to the MTF MACD Strategy: https://www.hahn-tech.com/thinkorswim-strategy-guide-mtf/
Hi Pete! Is there a reason you can think of that would cause the lower study window to be blank at the start of everyday? I have to reload the saved style with settings in three windows and they populate again. Sometimes one of them will still display the histogram but the rest are mysteriously blank till I reload they style. Thank you, Sir, it’s a great script!
This is a common glitch in the Thinkorswim platform It even happens with built-in studies that reference higher time frames. For example the CamarillaLevels study. Sorry, nothing wrong with the code. Thinkorswim developers need to find the bug and fix it. But there is zero chance they will fix it unless someone tells them there is a problem.
Ok appreciate it Pete. I saved each timeframe as a style labeled as such, like 15m MAXD is what I call it, so the associated settings using 1h and D above are retained and automatically reloaded. PITA as I have the 1m and 5m setup the same way so there’s a routine of preloading them each morning BUT reload ONE workspace with all and accomplishes the same thing in one click for anyone wanting a faster fix.
Thanks for providing your tips for this workaround. Very much appreciate your input!
Hi Pete, i only need the midterm macdValue decline(not diff)
so i change
def midTermLower = midTermDiff < midTermDiff[1];
into def midTermLower = midTermValue < midTermValue[1];
but as rec midTermSignal
not allowed in conditional order (although recently there's no error showed in thinkscript editor, it did show error in the past)
will this study still be correct if i made it as
plot entry = Value[1]<Value[2] # macd chart level
and midTermLower[1] ;
i did test in paperMoney sometimes it triggered sometimes not
your kind input is highly appreciated.tks so much
Recursive variables “rec” are not supported for Conditional Orders at this time. There is no way to work around this limitation until Thinkorswim developers upgrade this section of the platform.
thanks. so plot e=midTermLower[1] ; (not using rec) will not be accurate ?
Sorry but no. That would completely ruin the signal. Trust me if there is a way to work around this I would have already provided that method. You do not need to waste anymore time trying to get this to work in the Conditional Order.
Will this study always give entry (or exit for that matter) point, in the past. So, say, DAILY and HOURLY EMA crosses sometime today, but in order to get entry signal on my chart from this indicator, it also needs to cross WEEKLY, which will form a WEEK later because it’s a lagging indicator; and I’ll never get the entry/exit signal on my hourly chart until the the weekly candle closes. isn’t it?
I cannot imagine a way to answer your question more clearly than what was already demonstrated in the video itself.