Trend Following SuperSmoother - Accumulation Zones [JW]Trend Following SuperSmoother - Accumulation Zones
A Pine Script trend following indicator designed to identify systematic accumulation opportunities, profit-taking periods and broader position cycles using a smoothed oscillator framework.
The indicator is intended primarily for long-horizon analysis, with particular emphasis on distinguishing early trend reversals from pullbacks within established positive trends.
---------------------------------------------------------------------------------------------------------------------
Overview
The indicator combines a SuperSmoother-based oscillator and signal line with Bollinger-style oscillator bands and a state-based signal framework.
Rather than treating every oscillator crossover as an independent trading signal, it classifies market conditions into distinct phases:
- Early Reversal Accumulation
- Pullback Accumulation
- Profit-Taking
- Long / Out-of-Market Position Regimes
Signals are evaluated on confirmed candle closes to reduce intrabar noise.
---------------------------------------------------------------------------------------------------------------------
Indicator Components
SuperSmoother Oscillator
The core oscillator is smoothed to reduce short-term market noise while preserving changes in longer-term momentum.
Its colour identifies its current direction:
- Green: oscillator rising
- Red: oscillator falling
A separate signal line provides a slower reference against which changes in oscillator behaviour can be assessed.
Bollinger Bands
Upper and lower bands are calculated around the oscillator framework and are used to identify unusually extended oscillator conditions.
Unlike price Bollinger Bands, these bands operate within the oscillator pane and form part of the logic for identifying potential reversal and pullback setups.
---------------------------------------------------------------------------------------------------------------------
Accumulation Logic
1. Early Reversal
Early-reversal accumulation is designed to identify improving momentum following a sufficiently weak oscillator regime.
The setup begins when the oscillator has moved through the lower Bollinger boundary and subsequently satisfies the required rising/green conditions while remaining in the negative regime.
The exit condition depends on the state of the signal line when the setup occurs:
- If the signal line is below zero, accumulation continues until the signal reaches zero.
- If the signal line is already above zero, accumulation continues until the oscillator crosses the signal line from below.
This distinction prevents an early-reversal zone from remaining active indefinitely when the signal line was already positive at entry.
A large green triangle marks a confirmed early-reversal entry.
2. Pullback Accumulation
Pullback accumulation is intended for corrections occurring within an established positive oscillator regime.
The setup tracks an oscillator that has moved above the upper Bollinger boundary and subsequently falls back through it. Once the required falling/red condition is satisfied, a pullback accumulation period can begin.
This allows the oscillator to turn red either before or after crossing the upper band rather than requiring both events to occur on the same candle.
A smaller dark-green triangle marks the pullback entry.
---------------------------------------------------------------------------------------------------------------------
Profit-Taking
A profit-taking regime can begin when:
- the oscillator is above zero;
- the oscillator turns from rising to falling; and
- no higher-priority accumulation regime is active.
Profit-taking periods are displayed as light-red zones.
A small dark-red circle marks the beginning of a profit-taking phase.
Signal priority is:
Early Reversal > Pullback > Profit-Taking
This state hierarchy prevents accumulation and profit-taking zones from overlapping.
---------------------------------------------------------------------------------------------------------------------
Position-Cycle Signals
The indicator also provides a higher-level representation of the intended long-term position cycle.
Entry
A confirmed early-reversal signal marks the beginning of the primary long regime.
The oscillator pane displays:
- a green vertical entry line; and
- a green zero-axis regime line while the position remains active.
Exit
When the oscillator crosses below zero on a confirmed candle close:
- a large red circle marks the exit;
- a red vertical line identifies the transition; and
- the zero-axis regime changes from green to red.
The red regime continues until the next confirmed early-reversal entry.
This creates a continuous visual distinction between the indicator's long/holding regime and its out-of-market regime.
---------------------------------------------------------------------------------------------------------------------
Visual Signal Guide
Large green triangle -> Early-reversal entry / primary position entry
Small dark-green triangle -> Pullback accumulation
Small dark-red circle -> Profit-taking signal
Large red circle -> Oscillator below zero / primary position exit
Green background -> Accumulation zone
Light-red background -> Profit-taking zone
Green zero-axis regime -> Long / holding period
Red zero-axis regime -> Out-of-market period
Black hollow circles -> Regime change
---------------------------------------------------------------------------------------------------------------------
Design Philosophy
The indicator is designed around a simple idea: trend following does not necessarily require buying only after a trend has already become obvious.
Instead, the framework attempts to separate three useful stages of a longer market cycle:
1. accumulation during an emerging reversal;
2. additional accumulation during pullbacks within a positive trend; and
3. profit-taking as positive momentum begins to deteriorate.
The primary exit remains deliberately slower: a confirmed oscillator move below zero.
This makes the framework more suited to medium- and long-horizon trend participation than short-term trading.
---------------------------------------------------------------------------------------------------------------------
Alerts
Early-reversal and pullback entries are combined into a single TradingView entry alert condition, allowing both accumulation signal types to be monitored using one alert.
Signals are confirmed at candle close.
---------------------------------------------------------------------------------------------------------------------
The indicator can be applied across different securities and timeframes, although its parameters and behaviour should be evaluated for the characteristics of the underlying instrument.
Indicatore


