How HA Smooth Scalper stops Heikin Ashi color flip-flopping with protected highs and lows
If you trade with Heikin Ashi candles, you know the feeling: one or two candles flip color in the middle of an uptrend and you start wondering if the move is over. HA Smooth Scalper is a TradingView indicator built to cut out that noise. It filters out the small wiggles with smoothed Heikin Ashi candles, then adds one more layer on top: the color stays locked until price breaks the most recent swing low or high (the Protected Structure level).
What stood out most when I first put it on a chart was how rarely the candle color second-guesses itself. Even when a pullback prints a run of red-bodied candles, the chart stays green as long as the Protected Structure level holds. Flip that around and a color change means one thing: price has actually broken the last key swing. The ▲▼ signals on the chart take that color flip and stack multi-timeframe direction and a higher-timeframe check on top, so they only print on bars where everything lines up.
The script is published as a scalping tool, and its defaults look at six timeframes, from the 5-minute up to the weekly. In this review I go through how the colors, lines and signals are decided, using Bitcoin charts from the 1-minute to the weekly along with figures that reproduce what the indicator draws.

The thin stepped line on the chart is called Protected Structure. While the chart is green it marks the protected low, and while it’s red it marks the protected high. A direction change that prints a structure break label is what I call a structure break. Colors are simple: green is the bullish side, red is the bearish side.
What you see on the chart, piece by piece
Load HA Smooth Scalper on default settings and a lot shows up at once: recolored candles, two lines and a cloud, the Protected Structure line, labels and a table in the top-right corner. Here’s a quick map of what’s what.
| Element | Looks like | What it shows |
|---|---|---|
| Candle color | Repainted green / red | Current direction after the structure lock |
| Fast Baseline | A thick line | Close of the smoothed Heikin Ashi candles |
| Slow Baseline | A thin line | The Fast Baseline smoothed again with a 21-period EMA |
| Trend Cloud | The cloud between the two lines | Filled in the trend color, darker toward the top |
| Protected Structure | A thin stepped line | Protected low while green, protected high while red |
| structure break label | A small tag | The bar where price broke the protected level and the direction flipped |
| ▲ / ▼ | Triangle markers | A signal on a flip bar that passed every filter |
| Gold ★ | Star | A signal bar where every enabled timeframe agrees |
| PRO DASHBOARD | Table in the top-right corner | Direction on each timeframe, agreement count, Protected Structure price and more |
It’s easiest to follow along one move from rally to sell-off. At Figure 1, price closes above the protected high and the chart flips to green. Through Figure 2, price is falling but the chart stays green. Then at Figure 3, the bar that closes below the protected low is finally the one that turns it red.
How HA Smooth Scalper looks on the chart
Candle color, the cloud and the Protected Structure line all show the active direction in the same color.
Vowars DE ver.3.12.36
The key thing to take away here is that the color isn’t decided by the direction of the smoothed candles. It’s decided by whether price has broken the Protected Structure level. The Fast Baseline can start pointing down and the color still won’t change right away. Keep that in mind and you won’t be left wondering why the line is falling while the candles are still green.
The color runs on Heikin Ashi candles smoothed twice
The candles behind the color logic aren’t regular Heikin Ashi candles. HA Smooth Scalper builds them in three steps.
- Smooth each of the four prices of the original candle (open, high, low and close) with an EMA (Pre-Smooth Length (OHLC), default 6)
- Calculate Heikin Ashi candles from those smoothed prices
- Smooth the resulting Heikin Ashi candles with another EMA (Post-Smooth Length (HA), default 8)
The line through the closes of these candles is the Fast Baseline, and running that through a 21-period EMA gives you the Slow Baseline (Slow Baseline Length). When a smoothed candle closes at or above its open, the direction is up. Otherwise it’s down. With the structure lock turned off, this direction becomes the color as is.
To see the smoothed candles themselves, turn on Plot Smoothed HA Candles. They sit right on top of the real candles and are hard to tell apart, so I’d turn off Color Real Chart Candles when you compare them. As Figure 1 shows, the smoothed candles are drawn green whenever the structure is green, even while price is falling. That’s because their color also follows the final direction. And the long lower wick at Figure 2 barely shows up in the smoothed candles at all.
Overlaying the smoothed Heikin Ashi candles
Turning on Plot Smoothed HA Candles shows the smoothed Heikin Ashi candles the color logic actually runs on.
Vowars DE ver.3.12.36
Because the data is smoothed twice, the Fast Baseline lags price by quite a bit. Even on a sharp drop it only dips a little, so you’ll often see a wide gap between the line and the candles. In my experience it works better as a read on the overall flow than as a level to buy pullbacks against.
Why pullbacks don’t flip the color: the structure lock
Protected highs and lows update on confirmed swings
Enable Real Structure Trend Lock is on by default, and while it’s on, the direction follows these rules.
- While green, it defends the most recent confirmed swing low as the protected low
- While red, it defends the most recent confirmed swing high as the protected high
- The direction flips when a bar closes beyond the protected level by more than ATR(14) × Structure Break Buffer (×ATR)
A swing only counts as confirmed once there are Structure Pivot Strength bars (default 8) on each side of the high or low. A new low isn’t adopted as the protected low until 8 more bars have printed. That’s why the Protected Structure line steps along with a slight delay. The price used to find swings is set with Structure Source. The default Raw Price uses the actual highs and lows, while Smoothed HA uses the highs and lows of the smoothed candles.
Lock on vs. lock off on the same price action
The difference is clearest when you toggle only the lock on the same price action. With it off, green and red keep swapping in the middle of an uptrend, as in Figure 1, and even a small pullback like the one at Figure 2 prints a label.
Colors with the structure lock turned off
The smoothed candle direction becomes the trend direction, so even shallow pullbacks flip the color and print a label.
Vowars DE ver.3.12.36
Turn it back on and the same stretch stays green the whole way. The protected low steps higher, as you can see at Figure 2, and only the big red candle at Figure 3 closes below it and turns the chart red. Just one flip.
Colors with the structure lock turned on
On the same price action, the chart stays green until the protected low breaks, and there is only one flip.
Vowars DE ver.3.12.36
Structure break labels still print with the lock off. But in that mode the label doesn’t mean price broke the Protected Structure level. It only means the smoothed candle direction changed. The label text is the same either way, so read it accordingly when you change this setting.
Right after the direction flips, the Protected Structure level is set to whatever swing was last confirmed at that point. After a big move, that level can end up a long way from price. The stronger the lock, the longer it takes for the color to change after the market turns. Looking back over the charts, I found plenty of spots where waiting for the color flip to exit would have given back most of the profit. It’s safer to set your stop and target separately from the Protected Structure level.
Five gates a flip has to pass before ▲▼ prints
Signals are only checked on the bar where the direction flips. Four filters sit on top of that, and a ▲ (Long Scalp) or ▼ (Short Scalp) only prints when the same bar passes all of them. Here’s the flow as a diagram.
Five gates before ▲▼ prints
It starts with a direction flip, and a signal only fires when the same bar passes all four filters.
Vowars DE ver.3.12.36
1 Direction flip
This is the bar where the structure lock flips. With the lock off, it’s the bar where the smoothed candle direction changes.
2 Timeframe agreement
Out of the six timeframes, at least Min Timeframes Agreeing (0-6) (default 3) must point the same way as the flip, as shown at Figure 1. Disabled timeframes aren’t counted, and the minimum automatically drops to the number of enabled timeframes, so it can never become impossible. Set it to 0 and this condition goes away.
3 Higher-timeframe check
Enable Extra HTF Confirmator is on by default, which means Confirmator Timeframe (default 240, the 4-hour) has to agree. With the default method (EMA Slope + Price), it reads bullish when price is above the EMA 100 and the EMA is flat or rising, and bearish in the opposite case. Anything else is neutral, and while it’s neutral, neither longs nor shorts get through.
4 Slow Baseline slope
Entry Mode has to be set to Trend Pullback (the default) for this one to apply (Figure 2). Longs need a rising Slow Baseline and shorts need a falling one. Switch to Reversal and this check is dropped.
5 Expanding body
Impulse Filter (expanding body) is on by default, so the smoothed candle body has to be bigger than the previous one (Figure 3). The same rule applies to both longs and shorts.
The easy one to miss: the check happens only once, on the flip bar. If the conditions don’t line up on that bar, no ▲ will show up later while the trend continues. The next chance comes only when the direction flips again.
Let’s see it on actual price action. Figure 1 is a flip to red, but no ▼ prints because the Slow Baseline was still rising. Figure 2 is a flip where every condition lined up and a ▲ printed. But at Figure 3, just three bars later, price broke the protected low and the chart went back to red. That flip didn’t get a ▼ either, because timeframe agreement and slope fell short.
Structure breaks vs. signals
Every flip prints a label, but ▲▼ only appears on flips that pass every filter.
Vowars DE ver.3.12.36
A ▲ doesn’t mean the move will keep going. Right after a flip, the Protected Structure level sits at the most recent swing, so a reversal can take it out within a few bars. I think the right way to see the filters is that they reduce fakeouts, not eliminate them.
The gold ★ means everything lined up
The ★ (Full Bull / Full Bear) appears on a signal bar when every enabled timeframe points the same way. On default settings that means all six, from the 5-minute to the weekly, so it shows up a lot less often. On the 1-minute to weekly charts I looked at for this review, I barely found any. I’d treat a ★ as a sign of a strong tailwind when it does show up, and make day-to-day calls with the ▲▼ and the dashboard. You can toggle it with Show Full Confluence Stars.
You only need three rows of the PRO DASHBOARD
The table in the top-right corner has 14 rows, but you don’t need to read every one each time. The chart direction at Figure 1, the agreement count at Figure 2 and the HTF filter at Figure 3 are usually enough to tell whether the next flip is likely to produce a signal.
Reading the PRO DASHBOARD
Chart direction, six timeframes, the extra HTF filter and the protected level all fit in one table.
Vowars DE ver.3.12.36
Figure 2 reads 2 / 6 min 3: two timeframes agree with the chart direction, six are enabled, and the minimum is three. On a bearish chart it counts the bearish timeframes. Once the minimum is met, the text turns gold, so the color alone tells you where things stand. The PROTECTED row shows the price of the Protected Structure level currently being defended, which is handy when you’re thinking about where to put a stop.
Chart is bearish but TF 3 is bullish?
This one caught my eye first while watching a 1-hour chart. CHART 60 showed ▼ BEAR, while TF 3, the same 60-minute timeframe, showed ▲.

The reason is that the timeframe rows don’t go through the structure lock. Rows TF 1 to TF 6 show the raw direction of the smoothed Heikin Ashi candles, and with Use Confirmed MTF Candles on (the default), they use the direction of the last confirmed bar. The CHART row shows the direction after the structure lock. Same 60-minute timeframe, different things being measured, so the mismatch isn’t a glitch.
By the way, if you set a timeframe lower than the chart (like TF 1 at 5 minutes on a 4-hour chart), only the value of the last lower-timeframe bar inside each chart bar is used. That’s why the 5-minute and 15-minute rows don’t tell you much on a daily or weekly chart.
When HTF CONF shows —
When the 4H EMA 100 check goes neutral, the HTF CONF row shows —, and no signals print in either direction. Price can be above the EMA and the check is still neutral if the EMA itself is sloping down, so if you’re above the EMA and not getting long signals, this is the row to look at.
Close vs. Wick: what counts as a break
Structure Break Confirmation decides how a break of the Protected Structure level is confirmed. The default Close uses the closing price, while Wick uses the high or low.
Wick mode catching a wick-only break
With Structure Break Confirmation set to Wick, a wick through the level flips the direction even if the bar closes back inside.
Vowars DE ver.3.12.36
Figure 1 shows the upper wick alone clearing the protected high, yet the chart flipped green and even printed a ▲. But as Figure 2 shows, it went back to red six bars later. With the same price action on Close, this whole stretch stayed red. On symbols that like to wick through levels for a moment, such as gold (XAUUSD), or around big economic releases when price jumps around, Wick reacts faster but also gets caught by more fakeouts.
Structure Break Buffer (×ATR) is the margin beyond the Protected Structure level that price has to clear before a break counts. The default 0.05 means 5% of ATR, so the break is judged almost right at the level. In choppy markets that keep poking back and forth around a level, widening it to around 0.1–0.2 cuts down on flips.
Settings and how to tune them
The settings are split into eight groups. I focused on the ones that change how the indicator behaves, and kept the descriptions short for the purely visual ones.
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Pre-Smooth Length (OHLC) | 6 | Default (around 4 for faster) | Smoothing period for the four prices of the original candle. Lower reacts faster, higher filters more noise |
| Post-Smooth Length (HA) | 8 | Default (around 5 for faster) | Second smoothing period applied to the Heikin Ashi candles. Lower makes the direction flip more easily |
| Slow Baseline Length | 21 | Default | Period of the Slow Baseline. Also used for the Trend Pullback slope check |
| Enable Real Structure Trend Lock | On | On | When off, the smoothed candle direction becomes the trend direction and flips increase sharply |
| Structure Pivot Strength | 8 | 5–12 | Bars needed on each side to confirm a swing. Higher keeps only bigger swings as the Protected Structure level |
| Structure Source | Raw Price | Raw Price | Whether swings are found on actual highs and lows or on the smoothed candles |
| Structure Break Confirmation | Close | Close | Whether a break needs a close beyond the level or just a wick |
| Structure Break Buffer (×ATR) | 0.05 | 0.05–0.2 | Margin before a break counts (multiple of ATR(14)). Higher makes flips less frequent |
| Show Protected Structure Level | On | On | Shows the Protected Structure line |
| Show Structure Break Labels | On | Your call | Shows the structure break labels |
| Structure Label Size | Tiny | Tiny | Label size (Tiny / Small / Normal) |
| Enable Cheat Smooth Candle Mode | On | On | When off, the chart candles are no longer recolored. The cloud and lines stay colored by structure direction |
| Color Real Chart Candles | On | On | Paints the actual chart candles in the trend color |
| Plot Cheat Smooth Candles | Off | Off | Draws a separate set of extra-smoothed candles |
| Cheat Candle Extra Smooth | 5 | Default | Extra smoothing period for those candles |
| Use Structure Direction For Candle Color | On | On | When off, candle, cloud and line colors follow the smoothed candle direction instead of the structure |
| Entry Mode | Trend Pullback | Trend Pullback | Reversal removes the Slow Baseline slope condition |
| Min Timeframes Agreeing (0-6) | 3 | 3–4 | Number of timeframes that must agree for a signal |
| Impulse Filter (expanding body) | On | On | Requires the smoothed candle body to be bigger than the previous one |
| TF 1–TF 6 Enabled | All on | Only timeframes above the chart | Turns each timeframe on or off |
| Timeframe field next to TF 1–TF 6 Enabled | 5 / 15 / 60 / 240 / D / W | Mostly above the chart timeframe | The six timeframes used for the agreement count |
| Use Confirmed MTF Candles | On | On | On uses the last confirmed direction, off uses the forming bar |
| Enable Extra HTF Confirmator | On | On | Extra higher-timeframe filter |
| Confirmator Timeframe | 240 | Above the chart timeframe | Timeframe for the extra filter |
| Confirmator EMA Length | 100 | Default | EMA period for the extra filter |
| Confirmator Mode | EMA Slope + Price | EMA Slope + Price | HA Direction uses the smoothed candle direction on that timeframe instead |
| Use Confirmed HTF Candle | On | On | Whether the extra filter uses the confirmed bar |
| Trend Cloud / Gradient Fill | On / On | On | Shows the cloud and sets how strong the gradient is |
| Glow Baseline | Off | Your call | Adds a glow around the Fast Baseline |
| Plot Smoothed HA Candles | Off | On only when checking | Draws the smoothed Heikin Ashi candles on the chart |
| Confluence Background Tint | Off | Your call | Background tint that gets stronger as more timeframes agree |
| Baseline Width | 2 | 2 | Width of the Fast Baseline |
| Show Buy / Sell Signals | On | On | Shows the ▲▼. Hiding them doesn’t change the calculation or alerts |
| Show Full Confluence Stars | On | On | Shows the gold ★ |
| Show Dashboard | On | On | Shows the dashboard |
| Panel Position / Panel Text Size / Panel Emojis | Top Right / Tiny / On | Your call | Table position (9 options), text size and emojis on or off |
The Suggested column is a rough guide based on the reasoning below. What works changes with the symbol and timeframe, so the safest approach is to watch a few days of charts on defaults first, then adjust only the settings that feel too twitchy or too slow.
When you want faster reactions
Pre-Smooth Length (OHLC) and Post-Smooth Length (HA) can come down a step, with Structure Pivot Strength around 5 and Structure Break Buffer (×ATR) around 0.02. That makes both flips and signals show up sooner. The trade-off is that sideways markets produce just as many more flips. Think of speed and fakeouts as two sides of the same coin.
When you want fewer flips and a calmer chart
Structure Pivot Strength raised to 10–12 and Structure Break Buffer (×ATR) widened to 0.1–0.2 keep small swings from flipping the direction. Min Timeframes Agreeing (0-6) set to 4 tightens the signals even further. The catch is that the Protected Structure level sits further away and the color flips even later.
Using it on 1-hour charts and above
The default timeframe lineup is built more or less for 1-minute and 5-minute charts. On a 1-hour or 4-hour chart, TF 1 (5 minutes) and TF 2 (15 minutes) are lower than the chart, and as mentioned above, only the last lower-timeframe bar gets used. Switch those rows off with TF 1 Enabled and the matching toggles, or move them up to D, W or M, and the agreement count starts to mean something. On a 4-hour chart, the 240 in Confirmator Timeframe also matches the chart timeframe, so raising it to the daily lets it work as an actual filter.
Both the agreement count and the extra filter exist to check whether you’re trading with the higher-timeframe flow. Mixing in timeframes lower than the chart still gives you numbers, but they don’t carry much weight. When in doubt, enable only timeframes above your chart timeframe.
How it behaves in real time
What stays fixed after bar close and what can change
The candle color, Fast Baseline, Slow Baseline, cloud, Protected Structure line and structure break labels are calculated from confirmed bars on the chart timeframe only. They move with price while a bar is still forming, but once the bar closes they don’t get rewritten. Swings are confirmed 8 bars late, but they’re simply adopted as the Protected Structure level from that point on. The line is never redrawn back at the earlier position.
The ▲▼, the ★ and the timeframe rows on the dashboard are a different story, because they use data from other timeframes. Even with Use Confirmed MTF Candles and Use Confirmed HTF Candle on (the defaults), the higher-timeframe direction can switch one bar apart between what you saw live and what you see after reloading the chart. As a result, a ▲▼ that printed in real time may disappear or land on a different bar once the chart reloads. With those settings off, the indicator reads the still-forming higher-timeframe candle, and the gap gets bigger.
The ▲▼ you see on historical bars were recalculated with higher-timeframe data that had already closed. They didn’t necessarily print in the same place in real time. If you turn off the timeframe filters (all TF 1–6 off, or Min Timeframes Agreeing (0-6) set to 0) along with the extra HTF filter, the signals depend only on the chart timeframe, but you’ll get more fakeouts, so weigh that against how you trade.
Six alert conditions
These are the six conditions you can pick when creating an alert.
| Alert name | When it fires |
|---|---|
| Long Scalp | A ▲ long signal prints |
| Short Scalp | A ▼ short signal prints |
| Full Bull | A long signal with every enabled timeframe bullish |
| Full Bear | A short signal with every enabled timeframe bearish |
| Structure Bull Break | A bullish structure break |
| Structure Bear Break | A bearish structure break |
The conditions are checked the moment they line up, even on a forming bar. Setting the alert frequency to Once Per Bar Close cuts down on alerts that fire mid-bar and then disappear by the close. When you can’t watch the chart, you can also set only Structure Bull Break / Structure Bear Break and use them as a heads-up that the trend has turned.
Pair it with Parabolic SAR to plan your exits
HA Smooth Scalper’s weak spot is that the strong structure lock makes the color flip late. So I tried leaving the direction to HA Smooth Scalper and using a second indicator only to time profit-taking and exits. Parabolic SAR turned out to be a good match.
Using Parabolic SAR to time your exits
While HA Smooth Scalper holds its direction, the SAR dots often flip to the other side first.
Vowars DE ver.3.12.36
Figure 1 shows the SAR dots flipping above price while the candles are still green. The color only turns red at Figure 2, eight bars after the SAR flip. On the bounce that follows, the SAR again moves below price early, as you can see at Figure 3, while HA Smooth Scalper stays red until price clears the protected high way up above.
One way to use them together is to scale out part of the position when the SAR flips above price after a ▲ entry, and hold the rest until the color flips. SAR flips a lot in ranges, so don’t take entries off SAR alone. Use it strictly as an exit cue.
A few other indicators also fill different roles and pair up nicely.
- ADX: when it’s low and flat, trends tend not to develop, which gives you a reason to skip a signal even after a flip
- VWAP lets you check whether price is above or below the day’s volume-weighted average price, which suits day trading and scalping. Be careful with a ▲ that prints below VWAP
- ATR: checking how many ATRs away the Protected Structure level is helps you see whether the stop would be too wide
What you can leave to it and what still needs your judgment
What you can leave to it
- The color rarely flips during pullbacks and bounces, so you can ride a trend without second-guessing
- Protected high and low prices show up on the chart and in the table, so you always know which level flips the direction
- Five layers of filters (flip, timeframe agreement, HTF, slope, body) keep the signal count down
- Plenty of settings to change the behavior, including the lock, break confirmation and timeframes
- Alerts for both structure breaks and signals
Where your judgment still matters
- Double smoothing plus the structure lock means late flips off tops and bottoms
- The Protected Structure level can be far away right after a flip, so exiting on color alone can give back a lot of profit
- In sideways markets, structure breaks can still come one after another even with the lock
- ▲▼ are only checked once on the flip bar, and if the conditions don’t line up, that trend gets no signal
- Because it uses other timeframes, signal positions can differ between real time and after a reload
- Lots of settings to learn
How it looks across timeframes
I loaded the same settings on everything from the 1-minute to the weekly and compared. The logic is the same on every timeframe, but the feel is very different. Keep in mind this is just what I saw on these particular charts, not a promise that every symbol or period will look the same.

On the 1-minute and 5-minute charts, structure breaks came several times within a few hours. During whippy stretches the flips can come back to back, so it’s better to use the dashboard’s agreement count and pick your signals. On the 15-minute and 1-hour, one color holds for a long time, and the big sell-off stayed red almost the whole way.

On the daily, the direction flipped roughly once every one to two months, and even less often on the weekly. That works for checking direction in swing or position trading, but if you wait for signals, chances are few and far between. The default timeframe lineup also leans toward scalping, so if you use it on higher timeframes, apply the adjustments from “Using it on 1-hour charts and above” as well.
Let the color show the trend, and own your exits
ImageHA Smooth Scalper keeps the readability of Heikin Ashi candles and cuts down the color noise with one rule: don’t change direction until a key swing breaks. If pullbacks tend to shake you out, having a clear Protected Structure level to watch can change how you read the chart quite a bit.
On the other hand, the color flips late and the Protected Structure level can sit far from price. The ▲▼ are filtered down to qualifying flips, but two things are worth knowing before you use them: they’re only checked once on the flip bar, and because they rely on other timeframes, their positions can differ between real time and historical bars.
Personally, I’d run it on the 1-minute to 15-minute on default settings, check the agreement count and HTF filter on the dashboard, and then wait for a ▲▼. I’d take profits based on something else, like SAR, and treat the color flip as confirmation that the move is over. Let HA Smooth Scalper call the direction, and make the exit calls yourself. That split is where I think this indicator works best.









