MACD MTF thinkscript strategy


Category:
0
0

Hi Pete,

I’m no coder, but I’m wondering if you can point me in the right direction.  I’m playing around with a TOS strategy that would use MTF of the MACD.  In thinkscript code, how do I force MACD into a particular time period?  In my mind, I’d want to pass the function a variable, like this: MACDHistogram(AggregationPeriod.MONTH) -but that doesn’t seem to be right.  Any ideas?

Thanks,

David

Marked as spam
Posted by David Foster (Questions: 8, Answers: 3)
Asked on August 14, 2018 5:54 am
783 views
0
I just created and published a version of the MTF MACD for the TradingView platform. You can find that on the following webpage: https://www.hahn-tech.com/tradingview-multi-time-frame-macd/ FYI, that is based on my "version 2" which does NOT repaint signals.
(Pete Hahn at January 20, 2026 12:16 pm)
0
Private answer

Was this a setup question to enable me to showcase all the work I’ve done on this topic?

Original MTF MACD (cannot be used for strategies): https://www.hahn-tech.com/thinkorswim-mtf-macd-indicator/

MTF MACD Scan: https://www.hahn-tech.com/thinkorswim-mtf-macd-scan/

MTF Strategy (version 2): https://www.hahn-tech.com/thinkorswim-strategy-guide-mtf/

 

Marked as spam
Posted by Pete Hahn (Questions: 37, Answers: 4153)
Answered on August 14, 2018 9:35 am