OPEN-SOURCE SCRIPT
DSS Bressert - Trend, Valuation & Equity | Astral Vision

DSS Bressert - Trend, Valuation & Equity | Astral Vision 🌠💠
The Double Smoothed Stochastic, developed by William Bressert, applies a double layer of EMA smoothing to a standard stochastic oscillator, producing a signal that is significantly less noisy than raw stochastics while retaining sensitivity to momentum shifts.
The result oscillates between 0 and 100, with crossovers between the DSS line and its trigger EMA identifying trend changes at the selected resolution.
This indicator extends the standard DSS with three distinct analytical layers:
Calculation ⚙️
`xPreCalc = EMA(Stochastic(close, high, low, period), EMAlen)`
`DSS = EMA(Stochastic(xPreCalc, xPreCalc, xPreCalc, period), EMAlen)`
`Trigger = EMA(DSS, TriggerLen)`
A bull regime is established when DSS crosses above the trigger and persists until the next bearish cross. In No Repaint mode, crossover signals are shifted by one bar to prevent intrabar repainting. The equity curve compounds close-to-close returns only during confirmed bullish regime bars, starting from a user-defined year at a base value of 100.
Plots 📊
Inputs 🎛️
Colors 🎨
5 Astral Vision presets + custom override. Default: Paradiso.
In Trend mode, positive color applies during bullish regimes and negative during bearish. In Extremes mode, positive color activates at overbought and negative at oversold, with neutral between thresholds.
Purpose 🎯
Standard stochastic indicators generate excessive crossover noise, particularly on lower timeframes, making regime identification unreliable without significant manual filtering.
The double smoothing of the DSS reduces that noise substantially, but most implementations still present only a raw oscillator with no mechanism for translating the signal into a persistent regime read or a measurable performance track record.
This indicator addresses both gaps.
The Trend mode converts the DSS crossover into a persistent regime signal that remains active until explicitly invalidated, removing ambiguity about the current directional bias.
The Equity view goes further: rather than asking the trader to visually backtest the signal, it computes and displays the cumulative return of following the DSS regime directly on the chart, making the signal's historical value immediately quantifiable without any external tools.
The configurable resolution allows the same indicator to serve as both an intraday momentum tool and a macro trend filter depending on the selected timeframe.
Disclaimer ⭕️
It is not financial advice, not an investment recommendation, and not affiliated with any financial institution, research firm, or organization of any kind. All content is provided for educational and informational purposes only. Always conduct your own research before making any financial decision.
The Double Smoothed Stochastic, developed by William Bressert, applies a double layer of EMA smoothing to a standard stochastic oscillator, producing a signal that is significantly less noisy than raw stochastics while retaining sensitivity to momentum shifts.
The result oscillates between 0 and 100, with crossovers between the DSS line and its trigger EMA identifying trend changes at the selected resolution.
This indicator extends the standard DSS with three distinct analytical layers:
- Trend mode colors by bull/bear regime established at each DSS/trigger crossover, persisting the signal until the next cross.
- Extremes mode activates only at overbought and oversold zones, filtering the middle ground.
- The Equity view simulates a long-only strategy that holds when the DSS is in a bullish regime and exits to cash otherwise, displaying a cumulative equity curve alongside the price chart, translating the signal's historical performance into a directly readable return series.
Calculation ⚙️
`xPreCalc = EMA(Stochastic(close, high, low, period), EMAlen)`
`DSS = EMA(Stochastic(xPreCalc, xPreCalc, xPreCalc, period), EMAlen)`
`Trigger = EMA(DSS, TriggerLen)`
A bull regime is established when DSS crosses above the trigger and persists until the next bearish cross. In No Repaint mode, crossover signals are shifted by one bar to prevent intrabar repainting. The equity curve compounds close-to-close returns only during confirmed bullish regime bars, starting from a user-defined year at a base value of 100.
Plots 📊
- DSS line and trigger line in the indicator panel, colored by active mode and regime (Indicator view)
- Overbought and oversold threshold lines (Indicator view)
- Equity curve starting from the configured year (Equity view)
- Candle coloring on the price chart by DSS regime in both views
Inputs 🎛️
- `View`: Indicator (DSS oscillator) or Equity (cumulative strategy curve)
- `Mode`: Trend (regime-persistent coloring) or Extremes (overbought/oversold zones only)
- `No Repaint`: shifts crossover signals one bar forward to eliminate intrabar repainting (Trend mode only)
- `Equity Start Year`: anchor year for equity curve initialization (default 2019)
- `Period`: stochastic lookback for both smoothing stages (default 10)
- `EMA Length`: smoothing applied to each stochastic stage (default 9)
- `Trigger EMA`: EMA of the DSS line used as crossover signal (default 5)
- `Overbought / Oversold`: threshold levels for Extremes mode (defaults 90 / 10)
- `Resolution`: timeframe at which DSS is computed (default 60 minutes)
Colors 🎨
5 Astral Vision presets + custom override. Default: Paradiso.
In Trend mode, positive color applies during bullish regimes and negative during bearish. In Extremes mode, positive color activates at overbought and negative at oversold, with neutral between thresholds.
Purpose 🎯
Standard stochastic indicators generate excessive crossover noise, particularly on lower timeframes, making regime identification unreliable without significant manual filtering.
The double smoothing of the DSS reduces that noise substantially, but most implementations still present only a raw oscillator with no mechanism for translating the signal into a persistent regime read or a measurable performance track record.
This indicator addresses both gaps.
The Trend mode converts the DSS crossover into a persistent regime signal that remains active until explicitly invalidated, removing ambiguity about the current directional bias.
The Equity view goes further: rather than asking the trader to visually backtest the signal, it computes and displays the cumulative return of following the DSS regime directly on the chart, making the signal's historical value immediately quantifiable without any external tools.
The configurable resolution allows the same indicator to serve as both an intraday momentum tool and a macro trend filter depending on the selected timeframe.
Disclaimer ⭕️
It is not financial advice, not an investment recommendation, and not affiliated with any financial institution, research firm, or organization of any kind. All content is provided for educational and informational purposes only. Always conduct your own research before making any financial decision.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.