OPEN-SOURCE SCRIPT
Atualizado Goldwave Trend & Extremes | Astral Vision

Goldwave Trend & Extremes | Astral Vision 🌠💠
The Smoothed Moving Average reduces lag compared to a simple moving average while avoiding the whipsaw sensitivity of an EMA, making it particularly suited for trend-following applications where clean crossover signals matter more than immediate reaction to price.
By measuring the percentage spread between a fast and slow SMMA, this indicator produces a momentum oscillator that is both scale-independent and directly interpretable: positive spread means the fast average is leading the slow, confirming upward trend pressure; negative spread marks the inversion.
Three visualization modes expose different dimensions of the same underlying spread:
Calculation ⚙️
`SMMA(src, length) = (SMMA[1] × (length − 1) + src) / length`
Initialized with a standard SMA on the first bar. Two SMMAss of different lengths are computed and their percentage spread derived:
`Spread % = (Fast SMMA − Slow SMMA) / Slow SMMA × 100`
The spread oscillates around zero, with positive values indicating bullish trend alignment and negative values indicating bearish alignment. Overbought and oversold thresholds define the extreme zones where the spread has stretched beyond its typical range.
Plots 📊
Inputs 🎛️
Colors 🎨
5 Astral Vision presets + custom override. Default: Futura. Positive color applies when the fast SMMA leads the slow; negative color applies when the slow leads. In Extremes mode, negative color marks overbought conditions and positive color marks oversold conditions.
Purpose 🎯
Standard SMMA crossover systems plot two lines and leave threshold definition entirely to the trader's judgment, with no built-in way to distinguish routine crossovers from structurally significant spread extremes. Most spread-based oscillators use fixed absolute thresholds that lose relevance as volatility regimes change.
This indicator separates the three most common use cases, trend following, momentum confirmation, and extreme detection, into distinct visualization modes that share the same underlying calculation, letting traders switch between analytical lenses without changing the indicator.
The percentage-based spread makes the oscillator scale-independent and directly comparable across all price levels and time periods, so a reading of +8.5% carries the same structural meaning whether Bitcoin is at $10,000 or $100,000.
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 Smoothed Moving Average reduces lag compared to a simple moving average while avoiding the whipsaw sensitivity of an EMA, making it particularly suited for trend-following applications where clean crossover signals matter more than immediate reaction to price.
By measuring the percentage spread between a fast and slow SMMA, this indicator produces a momentum oscillator that is both scale-independent and directly interpretable: positive spread means the fast average is leading the slow, confirming upward trend pressure; negative spread marks the inversion.
Three visualization modes expose different dimensions of the same underlying spread:
- "SMMA Lines" plots the two averages directly on the price chart with a filled band between them
- "Colored Candles" colors price candles by trend direction throughout the chart history
- "Extremes" focuses exclusively on statistically significant spread deviations above and below configurable thresholds, filtering out the noise of the trend's middle ground.
Calculation ⚙️
`SMMA(src, length) = (SMMA[1] × (length − 1) + src) / length`
Initialized with a standard SMA on the first bar. Two SMMAss of different lengths are computed and their percentage spread derived:
`Spread % = (Fast SMMA − Slow SMMA) / Slow SMMA × 100`
The spread oscillates around zero, with positive values indicating bullish trend alignment and negative values indicating bearish alignment. Overbought and oversold thresholds define the extreme zones where the spread has stretched beyond its typical range.
Plots 📊
- Fast and slow SMMA lines on the price chart with a filled band between them (SMMA Lines mode)
- Spread percentage oscillator in the indicator panel, colored by trend direction or extreme regime
- Zero baseline in the panel
- Overbought and oversold threshold lines in the panel (Extremes mode)
- Fill between spread and zero baseline in non-Extremes mode
- Fill between spread and overbought/oversold thresholds when breached (Extremes mode)
- Candle coloring on the price chart by trend direction (Colored Candles mode)
- Candle coloring by extreme regime only — neutral shown as black (Extremes mode)
- Background highlight on the price chart when spread breaches either threshold (Extremes mode)
Inputs 🎛️
- `Visualization Mode`: SMMA Lines, Colored Candles, or Extremes
- `Fast SMMA Length`: period for the faster smoothed average (default 15)
- `Slow SMMA Length`: period for the slower smoothed average (default 29)
- `Overbought Threshold`: spread percentage above which the signal is considered extended (default 8.5)
- `Oversold Threshold` : spread percentage below which the signal is considered compressed (default −7.0)
Colors 🎨
5 Astral Vision presets + custom override. Default: Futura. Positive color applies when the fast SMMA leads the slow; negative color applies when the slow leads. In Extremes mode, negative color marks overbought conditions and positive color marks oversold conditions.
Purpose 🎯
Standard SMMA crossover systems plot two lines and leave threshold definition entirely to the trader's judgment, with no built-in way to distinguish routine crossovers from structurally significant spread extremes. Most spread-based oscillators use fixed absolute thresholds that lose relevance as volatility regimes change.
This indicator separates the three most common use cases, trend following, momentum confirmation, and extreme detection, into distinct visualization modes that share the same underlying calculation, letting traders switch between analytical lenses without changing the indicator.
The percentage-based spread makes the oscillator scale-independent and directly comparable across all price levels and time periods, so a reading of +8.5% carries the same structural meaning whether Bitcoin is at $10,000 or $100,000.
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.
Notas de Lançamento
Added long/short signals overlayed on the main chart when the spread between the two SMMA's comes back in neutral range after being oversold/overbought.This signals only appear in "Extremes" mode.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.