MACD Multi-MA Lets You Swap Out the Averages Inside the MACD
When people say MACD, they almost always mean the 12/26/9 EMA version. But depending on the market, it can feel too slow, or it keeps flipping between bullish and bearish crossovers in a choppy range. MACD Multi-MA is a TradingView indicator that lets you pick the moving average used to calculate the MACD from 29 different types.
The pane shows the familiar MACD line, signal line, and histogram, and the price candles are painted green or red based on the MACD’s state. On top of that, every time a crossover prints on a confirmed bar, it automatically draws a reference trade with an ATR-based stop line and three take-profit lines, plus a dashboard that sums up the current state.

After switching between several timeframes, what I found most useful is that you get to choose the MACD’s personality yourself. Do you want it to react faster, or do you want fewer fakeouts? You can compare them just by switching the Type inside the same pane.
Let’s start with the big picture. Add it to a chart with the default settings, and as Figure 1 shows, the candles turn green from the bar where the MACD line crosses above the signal line, then flip back to red when it crosses below in Figure 2.
Candle colors flip with every MACD crossover
The candle color is simply where the MACD line sits relative to the signal line.
Vowars DE ver.3.24.1
What You See on the Chart
MACD Multi-MA draws four things on the chart: the MACD in the lower pane, the candle colors on the price chart, the dashboard in the top-right corner, and the reference trade lines that only appear when you turn them on in the settings. Let’s go through how to read each one.
The Cyan and Orange Lines and the Four-Color Histogram
The thick cyan line is the MACD line and the thin orange line is the signal line. The MACD line is “short-term moving average minus long-term moving average,” and the signal line is a moving average of that MACD line. So far, it’s the same as a regular MACD. The difference is that all three moving averages use the type you pick in the settings.
The histogram is the gap between the MACD line and the signal line, and it’s painted in four colors. Above the zero line and growing, it’s bright green; still above zero but starting to shrink, it’s dark green. The same goes for the downside: bright red when it’s growing, dark red when it’s shrinking.
| Histogram color | State | What it tells you |
|---|---|---|
| Bright green | Above zero and growing | Bullish momentum is strengthening |
| Dark green | Above zero and shrinking | Still bullish, but momentum is slowing |
| Bright red | Below zero and growing | Bearish momentum is strengthening |
| Dark red | Below zero and shrinking | Bearish momentum is weakening |
Thanks to these colors, you can spot a change in momentum without waiting for the crossover. In Figure 1 the bright green bars expand, then Figure 2 shows eight dark green bars in a row before the MACD line finally crosses below the signal line in Figure 3. Price was still near the highs, but the histogram colors had already shifted.
Spot fading momentum early with the four-color histogram
Watch the histogram's shading and you'll see momentum slow down before the MACD and signal lines cross.
Vowars DE ver.3.24.1
What Decides the Candle Colors?
The candle colors have nothing to do with whether a candle is bullish or bearish. With the default Candle Mode (MACD × Signal), candles are green while the MACD line is above the signal line and red while it’s below. That means a bearish candle can be green and a bullish candle can be red. Once you get used to it, you can tell which side you’re on without looking down at the pane, so your eyes stay on price action.
Switch Candle Mode to MACD × Zero and the reference changes from the signal line to the zero line. Candles are green while the MACD line is above zero and red while it’s below. Since the coloring now follows whether the fast average is above the slow one, the colors flip far less often. In Figure 1, the MACD × Signal candles turn red during the pullback, while in Figure 2 the MACD × Zero candles stay green through the same stretch.
Candle Mode changes what the candle colors are based on
Two charts of the same price action, with only Candle Mode switched.
Vowars DE ver.3.24.1
If you want to track every small pullback and bounce, use MACD × Signal. If you only want the colors to show the bigger trend direction, MACD × Zero is the easier choice. In either mode, a bar where the MACD line sits exactly on the reference keeps the previous color.
What to Watch on the Dashboard
The dashboard lists the selected moving average type and lengths, the current MACD, signal, and histogram values, and the status of the reference trade. In practice, I kept checking three rows. In Figure 1, Bias shows where the MACD line sits relative to the signal line. In Figure 2, Trade shows whether the reference trade is Long, Short, or closed (Flat). In Figure 3, TP1 through TP3 get a ✓ as each one is hit.
Check the current state and the reference trade on the dashboard
The dashboard in the top-right corner puts the MACD readings and the reference trade status in one table.
Vowars DE ver.3.24.1
If something is wrong with your settings, an amber warning row appears on the dashboard. There are three cases: Fast is equal to or longer than Slow, you picked a volume-based Type on a symbol with no volume data, or the target multiples are out of order. These warnings stay visible even if you turn off Show Dashboard.
How Does the MACD Change Across 29 Moving Averages?
This is the heart of MACD Multi-MA. When you change the Type, all three moving averages behind the MACD and signal lines switch to that type. Even with the lengths left at 12/26/9, the shape of the lines and the way crossovers show up change noticeably.
The figure below runs the same price action with only the Type changed. With the default EMA, Figure 1 shows five crossovers in the visible range. Switch to the faster HMA (Hull Moving Average) and it reacts to small wiggles too, jumping to 14 crossovers in Figure 2. On the other hand, TRIMA, which averages twice, cut it down to four, but as Figure 3 shows, its flip to the upside came nine bars later than the EMA’s.
Changing the Type changes the crossover count, even at 12/26/9
Three charts with the same price action and the same 12/26/9 lengths, with only the Type changed.
Vowars DE ver.3.24.1
Speed and smoothness are a trade-off: gain one and you give up some of the other. It’s not about which Type is “best.” To me, the real value of this indicator is that you can pick the speed that fits your own trading. The 29 types roughly fall into these groups.
| Group | Type | Effect on the MACD |
|---|---|---|
| Basic moving averages | SMA/EMA/RMA/WMA/SWMA/Median | EMA gives the standard MACD. RMA is slower than EMA, and Median uses the median, so a single outlier close has less pull |
| Stacked averages | DWMA/TWMA/TRIMA | Averaging two or three times smooths the lines, so crossovers are fewer and later |
| Volume-weighted | VWMA/DVWMA/TVWMA | Gives more weight to high-volume bars. Nothing is drawn on symbols without volume data |
| Lag-reducing types | DEMA/TEMA/ZLEMA/HMA/EHMA/THMA | React faster to direction changes, but tend to produce more crossovers |
| Regression and Gaussian | LSMA/ALMA | LSMA is the endpoint of a linear regression line. ALMA lets you adjust the position and width of its weighting curve |
| Adaptive | KAMA/FRAMA/VIDYA/McGinley | Speed adjusts to how efficiently or strongly price is moving |
| Filters | T3/JMA/SSF/Kalman | Smoothing focused on removing small noise. Many can be tuned in the settings |
| LLAMA | LLAMA | An EMA that searches for past bars with similar RSI patterns and stretches or shrinks its length based on what price did next |
Here’s a rough guide based on what I tested. Start with EMA to get a feel for your usual MACD. If you want to catch direction changes earlier, try a lag-reducing type like HMA or ZLEMA. If you want fewer crossovers in choppy markets, try a smoother type like TRIMA or T3. Going in that order makes the differences easy to see. Adaptive types like KAMA and FRAMA are designed to move faster when price trends cleanly in one direction and slower when it chops back and forth. That said, they didn’t reduce crossovers in every situation, so compare them on the symbols and timeframes you actually trade before settling on one.
With Type set to EMA and lengths at 12/26/9, the display is almost identical to TradingView’s built-in MACD. However, MACD Multi-MA’s EMA starts calculating from the first bar’s value, so values on the oldest bars near the left edge of the chart can differ slightly from the built-in MACD. The gap disappears as more bars load, so it’s nothing to worry about when you’re looking at recent bars.
How the Auto-Drawn “Reference Trades” Work
When the MACD line crosses the signal line and that bar closes, MACD Multi-MA opens one reference trade at that moment: long on a cross above, short on a cross below. Turn on Levels and the entry price, stop-loss line, and three take-profit lines are drawn on the price chart (it’s off by default).
As Figure 1 shows, the entry price is the close of the crossover bar. The stop-loss line in Figure 2 sits 1.5 times the ATR (average true range) away from the entry, and that distance becomes “1R” (one unit of risk). The take-profit lines sit at 1R for TP1, 2R for TP2, and 3R for TP3. When the high touches TP1, the label changes to “✓ HIT” with the move from entry in percent, as shown in Figure 3.
Reference trade lines drawn on a confirmed crossover
With Levels turned on, the entry, stop-loss, and three take-profit lines of the latest trade are drawn on the price chart.
Vowars DE ver.3.24.1
Because the stop distance is based on ATR rather than a fixed amount, it widens in volatile periods and tightens in quiet ones. That’s a big plus for something like Bitcoin, where the trading range changes a lot over time, because you can keep the same settings.

When Does a Trade End?
TP1 and TP2 work as partial exits: the trade stays open after they’re hit. A trade only ends in one of three ways: TP3 is hit, a bar closes beyond the stop-loss line, or an opposite crossover is confirmed. When it ends on an opposite crossover and the conditions are met, a trade in the other direction opens on that same bar, which is essentially a stop-and-reverse, as shown in Figure 2.
From entry to exit: the reference trade lifecycle
MACD Multi-MA's reference trades start on a confirmed crossover and end at one of three exits.
Vowars DE ver.3.24.1
The part that’s easy to miss is Figure 1: even if the lines have crossed on a bar that’s still forming, no reference trade opens yet. Since it waits for the bar to close, the entry never moves after the trade is opened. And if another crossover in the same direction appears while a trade in that direction is already open, no new trade is opened.
Stops Trigger on the Close, Targets Trigger on the Wick
This is where results can differ from real trading, so it’s worth knowing. As Figure 1 shows, a wick poking through the stop-loss line doesn’t count as a hit. As in Figure 2, the stop is only triggered when the bar closes beyond the line. Take-profit lines, on the other hand, count as hit the moment the high (or the low for shorts) touches them, as shown in Figure 3.
Stops trigger on the close, targets trigger on the wick
Price "crossing the line" is judged differently for stops and targets.
Vowars DE ver.3.24.1
In real trading, a stop order gets filled as soon as a wick pierces it. In the reference trade, a bar that only wicks through the stop keeps the trade open, so results on the chart can look better than what real orders would have produced. Commissions and slippage aren’t included either. Treat the reference trade results as a guide to “what this rule set would have done.”
One more thing: only the most recent trade is drawn on the chart. When a new trade opens, the previous trade’s lines and labels are removed. If you want to review past crossovers one by one, the easiest way I found was TradingView’s Bar Replay: rewind the chart and step forward bar by bar. Since this is an indicator, not a strategy, you won’t get a summary of results in the Strategy Tester.
What I Noticed Going from the 1-Minute to the Weekly Chart
On a Bitcoin chart, I kept the default EMA 12/26/9 and switched through the 1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, daily, and weekly timeframes (I turned on Levels on every timeframe except the 1-minute to check the reference trade lines).
On the 1-minute and 5-minute charts, crossovers were frequent, as expected, and the candle colors often flipped every few bars. Reference trades also kept getting replaced quickly, so on lower timeframes it felt best to use it just to see which side you’re on. On the 15-minute and 30-minute charts, after a big selloff, the MACD crossed above the signal line well below the zero line, and the long reference trade reached TP1. That’s a spot where the lines give you a handy guide for the first bounce after a flush.
On the most recent 4-hour and daily charts, a short reference trade opened at the start of a drop, reaching TP2 on the 4-hour and TP3 on the daily. The daily trade had already closed at TP3, so the dashboard’s Trade row showed Flat, but the lines and labels stay on the chart for 10 bars past the closing bar, so you can still read what happened and where.

The weekly chart was the most interesting. The dashboard’s Bias read “Below Signal,” meaning the MACD was under the signal line, yet Trade still showed “Long.” That’s because even if the MACD dips below the signal line on a weekly bar that’s still forming, it isn’t treated as a crossover until the bar closes. The rightmost candle had already turned red, which made the difference very clear: the candle color and Bias update on the live bar, while the reference trade waits for the bar to close.

Overall, after trying various timeframes, the stock 12/26/9 settings looked cleanest from the 1-hour to the daily chart, and the reference trade lines were spaced at meaningful distances. On lower timeframes, I think it’s easier to work with after cutting down the number of crossovers by switching to a smoother Type or using longer lengths. The math works the same on gold, stock indices, and forex pairs, so it should shine most on instruments that tend to trend.
Settings and Suggested Values by Goal
The settings are split into these groups: Core (MACD calculation), MA Params (fine-tuning used only by certain Types), Trade Tools (reference trades), Visuals (display), Dashboard, Alerts, and Colors. Let’s start with the ones you’ll touch most.
Settings for the MACD Calculation and Display
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Type | EMA | Start with EMA. Use HMA or ZLEMA for faster reactions, TRIMA or T3 for fewer crossovers | Selects the type of the three moving averages behind the MACD and signal lines from 29 options. Lag-reducing types cross earlier and more often; smoother types cross later and less often |
| Src | close | close | The price used for the fast and slow moving averages. Keep it on close to match the standard MACD |
| Fast | 12 | 12 | Length of the shorter moving average. Lower values make the MACD react faster and cross more often. It must be shorter than Slow, or no reference trades open |
| Slow | 26 | 26 | Length of the longer moving average. Higher values make the MACD move more slowly and cross the zero line less often |
| Signal | 9 | 9 | Length of the signal line. Lower values give earlier and more frequent crossovers; higher values give later and fewer |
| Hist | On | On | Shows the four-color histogram. Worth keeping on, since it’s how you spot fading momentum |
| Zero | On | On | Shows the zero line. Especially useful as the reference when Candle Mode is set to MACD × Zero |
| Levels | Off | On (when reviewing reference trades) | Draws the Entry, SL, and TP1 to TP3 lines and labels of the latest reference trade on the price chart |
| Candles | On | On (Off when combined with another indicator that recolors candles) | Colors the candles green or red based on the MACD state |
| Candle Mode | MACD × Signal | MACD × Signal to follow short-term flips, MACD × Zero to follow the bigger trend | The reference for candle colors. MACD × Signal uses the MACD line versus the signal line; MACD × Zero uses the MACD line versus zero |
| Show Dashboard | On | On | Shows the dashboard in the top-right corner. Setting warnings stay visible even when it’s off |
| Position | Top Right | A corner that doesn’t overlap price action | The corner where the dashboard is drawn (Top Right / Top Left / Bottom Right / Bottom Left) |
| Show on Price Chart | On | On | On draws the dashboard on the price chart; Off keeps it in the MACD pane |
Fast must be shorter than Slow. If it isn’t, the lines are still drawn, but no reference trades open and a warning appears on the dashboard.
Reference Trade Settings
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Lock Signal | Off | Off | When on, no new reference trades open on the latest bar and opposite crossovers don’t close the trade. After a chart reload, past bars are calculated normally |
| ATR Len | 14 | 14 | ATR length used for the stop distance. Shorter reacts faster to recent volatility; longer keeps the stop distance steadier |
| SL ATR | 1.5 | 1.5 to 2.0 | Distance from entry to the stop-loss line in ATR multiples. This distance is 1R; raising it moves the stop farther away and pushes the targets out by the same ratio |
| TP1 R | 1 | 1 | Places the first take-profit line this many R from entry. The trade stays open after it’s hit |
| TP2 R | 2 | 2 | Places the second take-profit line this many R from entry. The trade stays open after it’s hit |
| TP3 R | 3 | 3 | Places the third take-profit line this many R from entry. The trade closes when it’s hit |
If TP1 R through TP3 R aren’t entered in ascending order, they’re sorted from nearest to farthest, and the Targets row on the dashboard shows “Reordered.” If any take-profit line rounds to the same price as the entry, the labels are merged into one, like “Entry / TP1.”
Settings Used Only by Specific Types (MA Params)
These settings only apply when you’ve selected the matching Type in Type. For example, ALMA Off does nothing unless the Type is ALMA. The defaults are fine to start with.
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| ALMA Off | 0.85 | 0.85 | Used only when Type is ALMA. Sets where the weighting peaks: closer to 1 weights recent bars more and reacts faster, closer to 0 is smoother |
| ALMA Sig | 6 | 6 | Used only when Type is ALMA. Sets the width of the weighting curve: larger averages more broadly and smooths more, smaller makes the peak sharper |
| T3 Vf | 0.7 | 0.7 | Used only when Type is T3. Higher values react faster but overshoot more; lower values are smoother |
| KAMA Fast | 2 | 2 | Used only when Type is KAMA. The fastest tracking speed, applied when price moves cleanly in one direction. Lower is faster |
| KAMA Slow | 30 | 30 | Used only when Type is KAMA. The slowest tracking speed, applied when price chops back and forth. Higher values flatten the line more in ranges |
| JMA Phase | 50 | 50 | Used only when Type is JMA. Higher values reduce lag but overshoot more (-100 to 100) |
| JMA Pow | 2 | 2 | Used only when Type is JMA. Higher values react faster with less smoothing (1 to 5) |
| Kal Q | 1 | 1 | Used only when Type is Kalman. The higher it is relative to Kal R, the more it trusts new prices and the faster it tracks |
| Kal R | 10 | 10 | Used only when Type is Kalman. The higher it is relative to Kal Q, the more it discounts new prices, giving a smoother, slower line |
| LLAMA LB | 30 | 30 | Used only when Type is LLAMA. How many bars back it searches for similar setups |
| LLAMA Rng | 0.5 | 0.5 | Used only when Type is LLAMA. How far the length can stretch or shrink. At 0.5, it moves between half and 1.5 times the set length |
Example Setups by Trading Style
Treat these numbers as starting points. They’re built from how each Type and length behaves, so fine-tune them on your own symbols and timeframes while watching the number of crossovers and the amount of lag.
| Goal | Example settings | Why |
|---|---|---|
| Use it as your usual MACD | Type EMA, lengths 12/26/9, Candle Mode MACD × Signal | Nearly identical to the built-in MACD, so it’s easy to compare with other guides and charts |
| Fewer crossovers on lower timeframes | Type TRIMA or T3, lengths 12/26/9 | Smoother lines mean fewer crossovers from small wiggles, at the cost of later signals |
| Catch direction changes earlier | Type HMA or ZLEMA, lengths 12/26/9 | Lag-reducing types react faster to direction changes. Crossovers increase, so confirm the market regime with something like Chop Zone |
| Swing trading with the bigger trend only | Type EMA, Candle Mode MACD × Zero, SL ATR around 2.0 | Candle colors are less likely to flip on pullbacks and bounces. A slightly wider stop makes it harder to get shaken out |
What Can You Do with Alerts and Webhooks?
When you pick MACD Multi-MA as the condition in TradingView’s alert dialog, you’ll see these six alert conditions.
| Alert condition | When it fires |
|---|---|
| BUY Signal | On the close of the bar where a long reference trade opens |
| SELL Signal | On the close of the bar where a short reference trade opens |
| Close Long Signal | When a long reference trade is closed by TP3, the stop-loss, or an opposite crossover |
| Close Short Signal | When a short reference trade is closed by TP3, the stop-loss, or an opposite crossover |
| Partial Close Long | When a long reference trade hits TP1 or TP2 |
| Partial Close Short | When a short reference trade hits TP1 or TP2 |
Separately, if you choose the alert() function call option from the condition list, you’ll receive a JSON-formatted message containing the ticker, timeframe, trade direction, entry price, stop-loss price, take-profit prices, Type, and more. The word in the message’s “action” field can be changed with ↑ Long Action, ↓ Short Action, and the other inputs in the Alerts group, so you can match it to whatever tool receives it.
With TradingView webhooks, you can also send this message to an external server. Webhook alerts require two-factor authentication, and available features also depend on your TradingView plan, so check your account before setting it up.
BUY Signal, SELL Signal, and stop-loss alerts wait for the bar to close, but TP1 through TP3 alerts fire on the live bar as soon as the high or low touches the level. It’s good to keep this timing difference in mind: take-profit alerts can arrive first, while entry alerts only come after the bar closes.
Adding Chop Zone to Spot Markets Where Crosses Keep Firing
Since MACD Multi-MA turns every confirmed crossover into a reference trade, in a choppy market the crossovers keep firing around the zero line, and it tends to repeat the cycle of opening a trade and closing it on the next opposite cross. Changing the Type can reduce the number of crossovers, but the MACD pane alone doesn’t make it easy to tell whether you’re in a choppy market right now.
So I tried adding TradingView’s built-in Chop Zone indicator in a separate pane. Chop Zone shows the angle of the EMA 34 slope as columns in nine colors, so you can read the market regime from the color pattern without looking at any numbers. In the stretch where red and cyan alternate, as in Figure 1, the MACD also crossed five times, as Figure 2 shows. The cross above that came as the cyan columns started lining up led straight into the rally, as shown in Figure 3.
Use Chop Zone's colors to tell when crossovers are reliable
Add TradingView's built-in Chop Zone in a lower pane and its colors tell you when the market is prone to back-to-back MACD crossovers.
Vowars DE ver.3.24.1
A simple way to use it: give more weight to crossovers when Chop Zone’s colors are consistently on one side, and skip crossovers when the colors keep flipping. Because it looks at the market from a different angle than the MACD, the slope of the EMA 34, it doesn’t just double-check the same thing, which I liked.
Here are two more built-in indicators that look like a good match. Multi-Time Period Charts shows the higher-timeframe range as boxes, so you can check, for example, where in the 1-hour range a 15-minute reference trade was opened. RSI Divergence Indicator draws lines where price and RSI peaks and troughs disagree, which helps when you want an early hint that momentum is fading before the MACD crosses.
Where It Shines and What to Watch Out For
Where it shines
- Choose how the MACD is calculated from 29 moving averages and compare the response in the same pane
- The four-color histogram shows fading momentum before a crossover
- Candle colors show the MACD state, so you never have to take your eyes off price
- Automatically draws an ATR-based stop and three take-profit levels for every crossover
- Reference trades open on confirmed bars, so the entry never moves afterward
- The JSON alert messages are ready to use for external integrations
What to watch out for
- In choppy markets, crossovers keep firing and reference trades get replaced at short intervals
- Stops are judged on the close, so results can differ from real stop orders
- Only the most recent reference trade is drawn on the chart
- With so many Types and settings, testing them all takes time
- MACD values scale with price, so you can’t compare readings across symbols
Three Behaviors to Know Before You Use It
1 Closed bars don’t change
MACD Multi-MA calculates only from the chart’s own timeframe data and doesn’t pull data from higher timeframes. On the live bar, the MACD lines, histogram, and candle colors move with price, but once a bar closes its display doesn’t change, and reference trades only open on confirmed bars. As long as you use the default settings, you shouldn’t have to worry about crossovers or reference trades on the historical chart being rewritten later.
2 The one exception: Lock Signal
Lock Signal freezes the current reference trade: while it’s on, no new trades open and the trade isn’t closed by an opposite crossover (TP and stop-loss checks still run). However, it only applies to the latest bar. Even if a crossover was blocked while it was on, reloading the chart recalculates that bar as historical data, so the trade you blocked may show up. It’s safest to treat it as a temporary freeze for when you’re managing a trade manually.
3 It doesn’t run on Heikin Ashi or Renko charts
On Heikin Ashi, Renko, Kagi, Point & Figure, Range, and Line Break charts, the bars are built from synthetic prices rather than actual prices, so MACD Multi-MA doesn’t calculate anything and instead shows a message in the center of the chart asking you to switch to regular candles. Switch the chart type back to candles (or bars) and it displays normally.
The reference trade lines show where the stop and targets would sit if you entered mechanically on a confirmed crossover. Even if past charts show clean runs to TP3, there’s no guarantee the same results will continue. Don’t make trading decisions from MACD Multi-MA alone; combine it with the market context, the higher-timeframe trend, and your own risk management.
MACD Multi-MA’s Real Strength: A MACD Tuned to Your Own Speed
MACD Multi-MA keeps the familiar look of the MACD while letting you choose the moving average inside it from 29 types. Do you want HMA to catch direction changes earlier, or TRIMA or T3 to filter out crossovers? You can switch and compare right in the same pane, so it’s especially handy if you’ve ever felt that MACD is too slow or gives too many fakeouts.
ImageWith candle coloring, a four-color histogram, a dashboard, and ATR-based reference trades all in one package, it’s especially convenient if you build your chart around the MACD. Start with the default EMA to get the same feel as your usual MACD, turn on Levels to watch how the reference trades play out, and then try switching the Type one at a time. Once you find the Type that fits your timeframe, the same MACD can look very different.









