Ultimate MACD Indicator for ThinkorSwim

Honestly macd is a great, so are bollingers, but its even greater to understand what bolingers are actually doing, they are taking the standard deviation, meaning the average extreme moves of the last (usually can be changed) 21 bars, look into what standard deviations are, all indicators do is show you a different way that price is moving, like it simplifies the idea that price is going up or down, the most simple form of this that i have come across is THE STRAT, this will allow you to visualize price action, trading without understand what the indicators are actually doing is only seeing the result, trading "indicators" are not the way to trade, but they do help you visualise what price is doing, one may argue that if everyone is looking at the same indicator than it becomes a self-fulfilling prophecy, meaning if everyone is looking at macd to across over to green than to buy than it works, or if everyone is looking at Fibonacci than it might work, i once saw a post by this creator of indicators name mobious, and he stated that more than three indicators is too much. read this

BkSx8Zq.png
 
Last edited by a moderator:

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

@txp0601 Go back to post # 1. There is a chart section of just the indicator with some notes on possible use. See if that helps. If not ask a more detailed question of what you do not understand.
 
Hi horserider i just started using your macd indicator here but I am not sure how you are getting the buy/sell signal arrows on your chart?
 
@AshtheMan The indicator being discussed in this thread is displayed in the lower studies on post#1.
Arrows seen in the upper study are not part of this indicator and are not available. :(
 
Honestly macd is a great, so are bollingers, but its even greater to understand what bolingers are actually doing, they are taking the standard deviation, meaning the average extreme moves of the last (usually can be changed) 21 bars, look into what standard deviations are, all indicators do is show you a different way that price is moving, like it simplifies the idea that price is going up or down, the most simple form of this that i have come across is THE STRAT, this will allow you to visualize price action, trading without understand what the indicators are actually doing is only seeing the result, trading "indicators" are not the way to trade, but they do help you visualise what price is doing, one may argue that if everyone is looking at the same indicator than it becomes a self-fulfilling prophecy, meaning if everyone is looking at macd to across over to green than to buy than it works, or if everyone is looking at Fibonacci than it might work, i once saw a post by this creator of indicators name mobious, and he stated that more than three indicators is too much. read this

BkSx8Zq.png
Where do you find a script for trend pivots and volume wave?
 
@horserider Hello,

I'd like to ask if you could make this indicator usable on tradingview, other people have made their own and their MACDBB doesn't have the squeeze factor on the bollinger bands. So if you see this, I'd appreciate it if you can make this happen... my birthday is on jan 24th :) lol
 
@rovo Sorry for delayed rsponse.

AVG line is white line labeled SMA in your photo in post 54
midline is safe buy = orange line

Stages would be;
1. Break off outer band if following an outer band
2. Color change of MACD line
3. Cross AVG line
4. Cross midline

Main signal is cross of MACD and midline.
I use this indicator with fast , slow , macd values cut in half along with others to day trade and it works quite well . Thanks
 
would anyone be willing to help me create a strategy based on the Ultimate MACD indicator? I would like the strategy to go long when the indicator changes from red to green and short when changes from green to red. any help would be appreciated.
 
Trending Oscillators make poor strategies in isolation.
  1. Trending Indicators work great when a stock is trending but losses multiply in chop and downtrends.
  2. Your buy/sell conditions do not reference the power of oscillators which is the ability to find the beginning of trends by using crosses of zero, or average, or oversold/overbought. Additionally, this particular study have Bollinger Bands which are also left out.
This has an overall 70% loss rate.
j48itjR.png

Ruby:
# Ultimate MACD by Horserider 8/30/2019
# Standard version
# Also have short and long term versions. Can accomplish all three by just adjusting inputs to fit your trading style.
# Standard MACD 12,26,9 BB length 20.
# Short term MACD 6, 13, 6 BB length 5.
# Long term MACD 48, 104, 36 BBlength 20.
# Added zero line on suggestion of Ahmar824 1/12/2019.

input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input AverageTypeMACD = {SMA, default EMA, HMA, Wilders};

input price = close;
input displace = 0;

def MACD_Data = MACD(fastLength = fastLength, slowLength = slowLength, MACDLength = MACDLength);
def MACD_Line = MACD_Data;

def state = if MACD_Line > MACD_Line[1] then  1 else
            if MACD_Line < MACD_Line[1] then -1 else 0 ;

##Long
AddOrder(OrderType.BUY_TO_OPEN, condition = (STATE crosses above 0));
AddOrder(OrderType.SELL_TO_CLOSE, condition = (STATE crosses below 0));
Extended P&L summary can be found here:
https://usethinkscript.com/threads/...acktesting-data-utility-for-thinkorswim.1624/
 
Last edited:
I am asking the catalog of studies, not the place where they will be shown in chart. For example, RSI is a momenton indicator, MA, EMA, and MACD is trend indicator, etc.
Since horserider emphasied many time in this forum, do not use (recommend) studies or indicators from the same catalog. So he might has a complete list of catalog of studies (indicator), or maybe some optimazation combination of indicators from different catalog.
 
I am asking the catalog of studies, not the place where they will be shown in chart. For example, RSI is a momenton indicator, MA, EMA, and MACD is trend indicator, etc.
Since horserider emphasied many time in this forum, do not use (recommend) studies or indicators from the same catalog. So he might has a complete list of catalog of studies (indicator), or maybe some optimazation combination of indicators from different catalog.
https://usethinkscript.com/threads/...nt-to-successful-trading-in-thinkorswim.6114/
 
Hello @horserider/@BenTen,

Thank you for the script. I've been checking it out and it's amazing. I'm really new to all this and had a question.

What's the reason sometimes the MACD is a different color from the candles. So price if moving down but the MACD color is green?

It doesn't happen all the time but I have seen situations where the MACD is a different color from the price action.

Thanks in advance.
 
Last edited:
Hello @horserider/@BenTen,

Thank you for the script. I've been checking it out and it's amazing. I'm really new to all this and had a question.

What's the reason sometimes the MACD is a different color from the candles. So price if moving down but the MACD color is green?

It doesn't happen all the time but I have seen situations where the MACD is a different color from the price action.

Thanks in advance.
Price action is looking at a single candle. Whereas the MACD is looking at a group of candles.

The Moving average convergence/divergence (MACD) is a trend-following momentum indicator that shows the relationship between two exponential moving averages (EMAs).
It is looking at a bigger picture than just one bar.

The OP of this thread is coloring the MACD thread green when the momentum is increasing.

It is beyond the scope of this thread to explain the intricacies of the MACD.
It is one of the most used oscillators on the forum. It definitely is worth researching and understanding the MACD before using.

Also read about the pros and cons of oscillators:
https://usethinkscript.com/threads/how-to-read-an-oscillator-in-thinkorswim.11497/
 
Last edited:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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