OPEN-SOURCE SCRIPT
已更新 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.
發行說明
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.
開源腳本
秉持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提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。