An Indicator That Reads the Trend From the Slope of a Noise-Filtered Line
Ever run a moving average and get whipsawed every time price chops back and forth across it, “broke above… nope, back below”?
“Butterworth Spectral Trend” takes a different approach to that frustration: it changes what actually triggers a trend flip. On the chart you get a single line, a row of blocks sitting on that line, a gradient fill between the line and price, and BUY/SELL labels on the bars where the trend flips.

At a glance it looks like a color-changing moving average, but the flip condition is different. It doesn’t care whether price crosses the line; it only looks at whether the line itself is pointing up or down. On top of that, it automatically lengthens the line’s lookback when the market gets noisy and shortens it when price is trending cleanly.
The four visual elements are all summarized in the figure below. Figure 1 is the line color, Figure 2 the blocks, and Figure 3 the fill. All of them turn the same green in a bullish state and the same red in a bearish state. The fill is strongest next to the line and fades out toward price. BUY labels print below the candle and SELL labels above it.
The four visual elements and what each one means
The line color, the blocks on the line, the gradient fill and the BUY/SELL labels are all layered on the chart.
Vowars DE ver.3.24.3
By default the bullish color is a bright green (Bullish Color in the settings). The figures use that default color scheme, while the chart screenshots in this article use the same green/red scheme as the “Classic” option under Color Preset. Only the colors differ; what the indicator shows is identical.
The Butterworth filter is a smoothing method that originally comes from signal processing, where it is used to strip small, fast wiggles out of an electrical signal. Unlike a simple moving average, which weights every past price equally, it works by attenuating any wave shorter than a given length, so for the same amount of smoothing it tends to lag less.
John Ehlers packaged this Butterworth filter as a 2-pole filter tuned for markets and called it the “SuperSmoother.” “Butterworth Spectral Trend” is built on top of that SuperSmoother.
I once left it running on the BTC 4H chart for a few weeks. The first thing that stood out was how rarely it did the classic moving-average thing in a range, where price keeps crossing the line and the color flickers back and forth. Because the color only changes when the line itself turns, a single wick is much less likely to flip the signal.
Why Doesn’t the Color Change When Price Breaks the Line?
The logic in “Butterworth Spectral Trend” is simple: if the line’s value is higher than on the previous bar, it’s bullish; if it’s lower, it’s bearish. Where price sits relative to the line plays no part in the signal.
The figure below shows closes dipping under the line during an uptrend. At Figure 1 and Figure 2 price breaks below the line, but the line is still pointing up, so it stays green. The color only turns red at Figure 3, the bar where the line itself rolls over after the top.
Closes below the line don’t trigger a SELL until the line turns down
Closes slip under the line twice during the uptrend, but the line keeps pointing up, so it stays green.
Vowars DE ver.3.24.3
Judging the trend this way has a few clear traits.
What you gain from slope-based flips
- Long wicks and brief spikes are less likely to flip the signal
- Stays bullish even when a pullback dips below the line
- The color changes closer to when the trend has genuinely turned
What to watch out for
- Flips tend to lag behind methods based on price crossing the line
- Labels print only after price has pulled back some distance from the top or bottom
- When the line goes flat, even tiny wiggles can flip the direction
The third point, that a flat line can flip on even tiny wiggles, is the single most important thing to understand when using this indicator. However smooth the line is, it’s never perfectly straight, so in a directionless market small ups and downs are enough to swap the color. The two settings covered later exist exactly for this situation.
Momentum Shows Up in Block Length
The square blocks sitting on the line (Show Spectral Bodies) are not price candles. Each one uses the previous bar’s line value as the open and the current line value as the close, so the body shows how far the line moved during that one bar. The high and low are the same as the open and close, so there are no wicks, just bodies.
The longer the block, the steeper the line is moving; the shorter it gets, the more the line is losing pace. At Figure 1 the blocks are large, while at Figure 2 they keep shrinking even though the color is still green. The color only changes afterward, at Figure 3.
Reading shifts in momentum from block length
Each block is how far the line moved in one bar. Longer blocks mean acceleration; shorter blocks mean deceleration.
Vowars DE ver.3.24.3
If you only watch the color, you won’t see the uptrend ending until the SELL at Figure 3. Keep an eye on block length as well and you can spot the momentum fading before that, which makes it a useful cue to start taking profit or to hold off on adding to the position.

Line Opacity Shifts Only Slightly With Momentum
The line itself also changes opacity with momentum. The bigger the line’s move compared with the current noise in price, the more solid it is drawn; the smaller, the more faded. Its transparency ranges from 20 to 75.
With the blocks turned on, though, the line and the same-colored blocks overlap, so the shading is hard to tell apart. In the price action I replayed, transparency usually stayed around 70 even in ordinary rallies and selloffs, and the difference in shading was barely visible. If you want to read momentum, block length is much easier to work with. If you still want to see the line shading, turn off Show Spectral Bodies; the blocks disappear and the shading becomes easier to see.
How the Line’s Period Stretches and Shrinks With the Market
The other key feature of “Butterworth Spectral Trend” is that it adjusts the line’s lookback automatically (Adaptive Cutoff). Under the hood it keeps a separate provisional line calculated on the base period (Base Cutoff Period) and measures two things from it.
- The gap between price and the provisional line shows how much the price action is scattered as noise
- The provisional line’s progress shows how far the line is moving in one direction
The more noise there is, the longer the period gets and the slower the line becomes; the cleaner the directional move, the shorter the period and the quicker the line. Here is the flow as a diagram.
The line’s period stretches and shrinks by weighing noise against momentum
With Adaptive Cutoff on, the line’s period is adjusted a little on every bar.
Vowars DE ver.3.24.3
With the default settings, the period actually used stays roughly between 17 and 33 bars. As Figure 2 shows, the change isn’t abrupt; it drifts gradually at the speed set by Cutoff Smoothing.
A line that slows down in ranges and speeds up on breakouts fits markets that go quiet for a while and then move hard: BTC and crypto in general, or gold when it rips on a data release. Because the line flattens out during the range, it’s easier to catch just the first leg of the breakout.
Getting Constant BUY/SELL Flips in Chop? Add These Two Settings
Two settings compensate for the line’s tendency to flip back and forth when it goes flat. Both put the brakes on the “flip the moment the slope reverses” behavior.
- Hysteresis Factor is the flip threshold. It uses the recent average of how far the line moves per bar (the “average move” from here on) as a baseline, and sets how many times that the opposite move has to be before a flip is allowed. Because the baseline scales with how fast the market is moving rather than being a fixed price distance, the same value carries over to symbols and timeframes with very different volatility.
- Minimum Hold Bars is the hold period after a flip. Once the direction flips, no further flip is allowed until the specified number of bars has passed. This consolidates round-trip, back-and-forth labels.
In terms of flow, the color only changes when the line turns the other way and then passes both conditions. The “recent average move” used for the threshold at Figure 1 is measured over the number of bars set in Adaptivity Lookback.
Two conditions the line must pass before the direction flips
Even when the line turns the other way, the color stays the same unless both conditions are met.
Vowars DE ver.3.24.3
With the “Default” preset, Hysteresis Factor and Minimum Hold Bars both start at 0, which means neither condition is applied at all. The moment the line tilts the other way it flips, so in a sideways market the labels keep coming. If you feel there are too many labels, this is the first place to look.
The figure below compares the same price action before and after adding the two settings. The left side uses the defaults; the right side uses a Hysteresis Factor of 0.5 and Minimum Hold Bars of 3. At Figure 1 on the left, BUY and SELL print five times during the chop, while on the right only the SELL at the start of the drop at Figure 2 remains.
Adding a flip threshold and hold period cleans up back-and-forth labels in chop
Both sides show the same price action. Left is default; right uses Hysteresis Factor 0.5 and Minimum Hold Bars 3.
Vowars DE ver.3.24.3
That said, the SELL on the right comes later than the first SELL on the left. The higher you set the threshold, the later you’ll catch real reversals too, so choose the values based on whether you’d rather cut whipsaws or cut lag. On lower timeframes like the 15m with default settings, I often saw labels printing every few bars in a range. The lower the timeframe, the more these two settings help.
Which of the Three Presets Should You Use?
The Preset Configuration setting at the very top of the settings panel lets you pick a combination suited to your timeframe and trading style.
| Preset | Intended timeframes | Base period and adaptive adjustment | Flip threshold and hold period |
|---|---|---|---|
| Default | 1H to daily | Base 20 bars, moderate adaptation | Both 0 (uses your settings) |
| Fast Response | 5m to 1H | Base 12 bars, stronger adaptation | Both 0 |
| Smooth Trend | Daily to weekly | Base 34 bars, lighter adaptation | Threshold 0.4, hold 2 bars |
Of the three, only “Smooth Trend” comes with the flip threshold and hold period already switched on. It favors a stable line with fewer flips, which makes sense to me on the daily and weekly, where a single fakeout tends to cost more. “Fast Response,” on the other hand, prioritizes reacting quickly, so it tends to print more labels.
The figure below runs the same price action through two presets. The top panel at Figure 1 reacts quickly to the drop off the top, but on the bounces that follow it keeps flipping between BUY and SELL, as at Figure 2. The bottom panel at Figure 3 gives its SELL 7 bars later, but never flips again after that.
The same price action under “Fast Response” and “Smooth Trend”
Top is Fast Response, bottom is Smooth Trend. The price data is exactly the same.
Vowars DE ver.3.24.3
One more thing worth remembering: which settings get overwritten when you pick a preset. While “Fast Response” or “Smooth Trend” is selected, whatever you type into the eight settings at Figure 1 is ignored.
Which settings get overwritten when you pick a preset?
Fast Response and Smooth Trend replace eight settings with fixed values. The rest always use your own values, whichever preset is selected.
Vowars DE ver.3.24.3
On the other hand, Price Source, Damping Factor, Nyquist Average, Adaptive Cutoff and the display settings always use your own values, whichever preset is selected, as shown at Figure 2. If you want to fine-tune the base period or the flip threshold yourself, select “Default” first and then adjust each setting.
All 23 Settings and How to Tune Them
Settings for the line calculation and signals
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Preset Configuration | Default | Match your timeframe | Switches a whole set of settings at once. Keep it on Default if you want to fine-tune |
| Price Source | hlc3 | hlc3 | Price used for the calculation. hlc3 is the average of high, low and close, which is steadier than close alone |
| Base Cutoff Period | 20 | 12–34 | Base period of the line. Higher is smoother and slower; lower hugs price and reacts faster |
| Damping Factor | 1.414 | 1.414 | How sharply the line reacts. Higher pulls it closer to price; lower makes it smoother and slower |
| Nyquist Average | On | On | Suppresses fine oscillation that flips up and down every other bar. Leave it on |
| Adaptive Cutoff | On | On | Automatically stretches or shrinks the line’s period based on market noise and momentum |
| Adaptivity Lookback | 32 | 20–48 | Bars used to measure noise and momentum. Also sets the bars used for the average move behind the flip threshold |
| Adaptivity Strength | 0.55 | 0.4–0.75 | How much of the adaptive adjustment is applied. 0 keeps the base period; 1 uses the adjusted value as is |
| Minimum Cutoff Multiplier | 0.55 | 0.5–0.7 | Floor for how short the adaptive period can go (multiple of the base period). Too low makes it overreactive |
| Maximum Cutoff Multiplier | 2.25 | 1.8–2.6 | Ceiling for how long the adaptive period can go (multiple of the base period). Higher makes the line slower in choppy markets |
| Cutoff Smoothing | 0.15 | 0.10–0.22 | How fast the period transitions. Lower changes slowly; higher changes quickly |
| Hysteresis Factor | 0.0 | 0.3–0.6 | Flip threshold. Higher removes small back-and-forth labels but delays flips |
| Minimum Hold Bars | 0 | 2–5 | Bars to wait after a flip. No new flip is allowed until this many bars have passed |
Display settings
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Show Spectral Bodies | On | On | Shows the blocks on the line. Turn off for a cleaner chart |
| Show Gradient Fill | On | On | Fills the space between the line and price with a gradient |
| Show Signal Labels | On | On | Shows BUY/SELL labels. Alerts still fire when this is off |
| Color Preset | Custom | Your preference | Switches the color scheme (Classic, Aqua, Cosmic, Cyber, Neon, Custom). The two colors below apply only when Custom is selected |
| Bullish Color | Bright green | Your preference | Color for bullish states. Applied to the line, blocks, fill, candle color, background and BUY labels |
| Bearish Color | Red | Your preference | Color for bearish states. Applied to the line, blocks, fill, candle color, background and SELL labels |
| Enable Bar Coloring | Off | Your preference (On if you want the state at a glance) | Colors the candles with the current state color |
| Bar Color Transparency | 50 | 40–60 | Transparency of the candle color. Lower is more vivid; higher is lighter |
| Enable Background Coloring | Off | Off | Tints the entire background with the state color. Tends to get hard to read alongside other indicators |
| Background Color Transparency | 90 | Around 90 | Transparency of the background tint. Too low makes price hard to read |
Why these suggested ranges
First, Hysteresis Factor and Minimum Hold Bars. Left at 0, the signal flips on the slightest wiggle in the line. Setting the threshold to around 0.3–0.6 bases the decision on the recent average move, so what remains tends to be the moves where the trend has genuinely turned. Adding a hold period of 2–5 bars also consolidates the back-and-forth flips. The fact that “Smooth Trend” itself uses 0.4 and 2 is one of the reasons for choosing these ranges.
The closer Adaptivity Strength gets to 0, the less the adaptive adjustment does, and the line ends up behaving much like an ordinary fixed-length moving average. It’s the indicator’s signature feature, so I’d keep it at 0.4 or higher. On the other hand, at 1.0 the line slowed down a lot in choppy conditions and sometimes missed the start of a trend. The default of around 0.55 was the most balanced setting in my testing.
Besides setting how fast the adaptation reacts, Adaptivity Lookback also sets the number of bars used to measure the “recent average move” that the flip threshold is based on. When Hysteresis Factor is above 0, this value affects the flip decision even with the adaptive adjustment turned off, so it’s safer not to push this one to extremes.
Raising Damping Factor pulls the line closer to price and makes it react faster; lowering it makes the line smoother and slower. When I actually changed the value and compared the results on the chart, it moved in that direction. The tooltip alone doesn’t make the direction obvious, so change it in small steps and check how the line changes with your own eyes as you adjust. In most cases the default of 1.414 is fine.
How to Use It on TradingView
1 Add it to the chart and check it on your usual timeframe
Search for “Butterworth Spectral Trend” in TradingView’s Indicators menu and add it. It overlays directly on your candles, so before touching any settings, just watch how often the color changes on the timeframe you normally trade.
2 Pick a preset that matches your timeframe
In Preset Configuration, a good rule of thumb is “Fast Response” for 5m to 1H, “Default” for 1H to daily, and “Smooth Trend” for daily to weekly. If “Default” prints too many labels for your taste, add some Hysteresis Factor and Minimum Hold Bars.
3 Read direction from color and momentum from block length
This is where most of the actual decision-making happens. Think of the color as the current trend direction and block length as its momentum. When the blocks start shrinking while the line is still green, upside momentum is fading. That’s a good time to go easy on new longs and start thinking about taking profit on what you already hold.
4 Act on labels only after the bar closes
BUY and SELL labels can appear and disappear on a bar that is still forming (more on why later). The basic rule is to wait for the bar to close and confirm the label is still there before acting. Rather than jumping in on the label bar itself, waiting for a pullback or bounce where the fill narrows puts you closer to the line, which also makes it easier to place your stop. For stop distance, another option is to set it one ATR (average true range) below the low of the label bar.
5 Set up alerts
There are three alert conditions: “Bullish Trend Signal” (flip to bullish), “Bearish Trend Signal” (flip to bearish) and “Any Trend Change” (either direction). Alerts keep working even with the labels hidden, so you can keep a clean chart and still get notified. If you set the trigger to “Once Per Bar Close” in TradingView’s alert dialog, you’ll only be notified of flips on confirmed bars.
Where It Shines and Where to Be Careful
Here’s what I found suits it and what doesn’t after testing it across various timeframes and market conditions.
Where it shines
- Clean one-directional trends (long blocks, easy-to-spot pullback levels)
- The first leg right after a breakout from a range
- Markets that alternate between quiet stretches and sharp moves (where the adaptive period earns its keep)
- Measuring the distance to the line on pullbacks and bounces within a trend
Where to be careful
- Tight sideways ranges (more flips at default settings)
- V-shaped reversals (the flip lags until the line turns)
- Trying to pick the exact top or bottom
- Thinly traded, gappy symbols
In terms of trading style, I find day trading and swing trading to be the easiest fit. With “Fast Response” it works on the 5m too, but since signals are based on the line’s slope, it isn’t built for scalping a few ticks. With “Smooth Trend” on the daily or weekly, it’s also handy for position traders checking whether a trend is still intact.

In the weekly chart above, the line stays green for a long stretch even through several pullbacks during the uptrend. The higher the timeframe, the less often the line changes direction, which makes it easy to use for confirming the bigger picture.
Gauge “Room to Run” With Pivot Points
The BUY and SELL labels in “Butterworth Spectral Trend” tell you that the direction has flipped. What they don’t tell you is how much room price has to run in that direction. A BUY right under a strong resistance level and a BUY with clear air above it look exactly the same.
That’s where TradingView’s built-in “Pivot Points Standard” pairs well. It uses the previous day’s high, low and close to draw horizontal lines at levels that often act as support and resistance for the day (P, R1, S1, and so on). The figure below overlays daily pivots on a 15m chart.
Overlaying pivot points shows how far the next level is above a BUY
Daily Pivot Points Standard (Traditional) overlaid on a 15m chart. The orange horizontal lines are the pivots.
Vowars DE ver.3.24.3
At the BUY at Figure 1, you can already see P and R1 waiting overhead. Sure enough, the rally stalls just below R1 at Figure 2 and flips to SELL. The next BUY at Figure 3 pushes through R1, and the next level to watch becomes R2. Checking the distance to the next level when a label prints also makes it easier to plan your take-profit in advance.
A few other combinations worth trying:
- Chop Zone shows the angle of an EMA’s slope as color-coded bars. While the colors signal a sideways market, it’s a good filter for skipping labels.
- Parabolic SAR plots stop dots that move closer to price over time. “Butterworth Spectral Trend” has no built-in exit, so this fills in a take-profit reference.
- “Butterworth Spectral Trend” on a higher timeframe is another option for confirmation. For example, use the 4H for trend bias and the 15m for entries, and only take trades when both colors agree. Adapt the rules to your own style.
Pairing it with a higher timeframe works especially well because the signal is binary, bullish or bearish, which makes it easy to turn into rules; it was the combination I found easiest to use in testing. Open the higher-timeframe chart separately, or set them side by side with TradingView’s multi-chart layouts.
Does It Repaint on Confirmed Bars? What to Know When Watching in Real Time
Confirmed bars don’t change, but the forming bar does
“Butterworth Spectral Trend” does not pull higher-timeframe data or use any future values in its calculation. Lines and labels on confirmed historical bars never change after the fact.
The forming bar is a different story, though. The line is recalculated against the live price, so a BUY label can appear mid-bar and then vanish before the bar closes. This is common to any indicator that calculates intrabar, but it’s worth keeping in mind if you use alerts on lower timeframes. As mentioned in STEP 5, setting the alert trigger to “Once Per Bar Close” means you only get flips on confirmed bars.
Don’t trade it on its own
What this indicator shows is trend direction and momentum; it doesn’t tell you whether price is overbought. A BUY can print near the highs after a big run-up, and chasing it there is an easy way to buy the top. It’s a good idea to also check whether the fill has stretched very wide and whether there’s a level just overhead.
The first few dozen bars can shift slightly depending on where the chart loads
Because it carries values forward from bar to bar, a different chart load start point can shift the line slightly for the first few dozen bars. When backtesting on historical charts, load plenty of history and treat signals near the left edge of the screen as rough reference only.
One Line: Direction From Color, Momentum From Blocks
ImageThere are plenty of color-changing, moving-average-style indicators out there, but what sets “Butterworth Spectral Trend” apart is that you can read “direction” and “momentum” together on a single line. Ride the trend while the blocks are long, ease off when they start shrinking. That decision is drawn right on the chart, which makes it a nice fit for anyone who doesn’t want a cluttered screen.
The adaptive period, which slows the line down in ranges and speeds it up when momentum kicks in, also suits markets that alternate between quiet stretches and sharp moves. It works the same way on trend-friendly markets like gold and stock indices, and the presets cover everything from the 5m to the weekly.
By default the flip threshold and hold period are both 0, so you’ll see a fair number of labels in sideways markets. Adding just a little Hysteresis Factor and Minimum Hold Bars calms things down noticeably, so start by checking how often labels print on your own timeframe, adjust as needed, and then put it to work.









