OPEN-SOURCE SCRIPT
Sinc Blackman Spectral Oscillator | Astral Vision

Sinc Blackman Spectral Oscillator | Astral Vision 🌠💠
This indicator applies a Sinc filter windowed with a Blackman function to extract a spectrally clean momentum signal from price, isolating cyclical components while suppressing high-frequency noise with a mathematically defined frequency boundary rather than the gradual roll-off of conventional moving averages. The oscillator measures the deviation of price from this filtered baseline, then applies a secondary moving average to the deviation itself to generate a signal line whose crossover drives both the visual output and the equity simulation.
The Blackman window is one of the most effective functions in digital signal processing: it reduces spectral leakage to near zero by tapering the filter kernel smoothly to zero at both ends, preventing frequencies outside the cutoff from bleeding into the filtered output. Applied to a Sinc filter, it produces a near-ideal low-pass filter that separates trend from noise with a precision unachievable by any EMA, WMA, or SMA-based approach.
The indicator operates in two visualization modes:
This is a momentum and trend following indicator suited for swing trading and position trading on daily timeframes. The spectral filtering makes it particularly effective at identifying sustained directional moves while ignoring the short-term price oscillations that generate false signals in standard momentum tools.
How it differs from standard momentum indicators
Standard momentum oscillators such as MACD, RSI, or standard moving average crossovers use filters with poorly defined frequency responses. A simple moving average does not have a clean cutoff frequency: it attenuates some frequencies gradually while letting others through unpredictably, a property known as spectral leakage. The Sinc-Blackman filter defines an explicit cutoff frequency and suppresses everything above it with near-ideal precision. This means the momentum baseline extracted by this indicator is genuinely separated from noise at the mathematical level, not merely smoothed. The configurable smoothing frequency parameter directly controls the spectral cutoff point, giving the user precise control over which price cycles are considered trend and which are considered noise, something no standard TradingView built-in provides.
Plots 📊
Inputs 🎛️
Colors 🎨
5 Astral Vision presets + custom override. Default: Futura.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions.
This indicator applies a Sinc filter windowed with a Blackman function to extract a spectrally clean momentum signal from price, isolating cyclical components while suppressing high-frequency noise with a mathematically defined frequency boundary rather than the gradual roll-off of conventional moving averages. The oscillator measures the deviation of price from this filtered baseline, then applies a secondary moving average to the deviation itself to generate a signal line whose crossover drives both the visual output and the equity simulation.
The Blackman window is one of the most effective functions in digital signal processing: it reduces spectral leakage to near zero by tapering the filter kernel smoothly to zero at both ends, preventing frequencies outside the cutoff from bleeding into the filtered output. Applied to a Sinc filter, it produces a near-ideal low-pass filter that separates trend from noise with a precision unachievable by any EMA, WMA, or SMA-based approach.
The indicator operates in two visualization modes:
- Oscillator mode displays the momentum and its signal MA directly.
- Equity Line mode simulates a long-only strategy that holds Bitcoin when momentum is positive and exits to cash when negative, with a full risk-adjusted performance dashboard.
This is a momentum and trend following indicator suited for swing trading and position trading on daily timeframes. The spectral filtering makes it particularly effective at identifying sustained directional moves while ignoring the short-term price oscillations that generate false signals in standard momentum tools.
How it differs from standard momentum indicators
Standard momentum oscillators such as MACD, RSI, or standard moving average crossovers use filters with poorly defined frequency responses. A simple moving average does not have a clean cutoff frequency: it attenuates some frequencies gradually while letting others through unpredictably, a property known as spectral leakage. The Sinc-Blackman filter defines an explicit cutoff frequency and suppresses everything above it with near-ideal precision. This means the momentum baseline extracted by this indicator is genuinely separated from noise at the mathematical level, not merely smoothed. The configurable smoothing frequency parameter directly controls the spectral cutoff point, giving the user precise control over which price cycles are considered trend and which are considered noise, something no standard TradingView built-in provides.
Plots 📊
- Momentum line with glow effect, colored by position relative to its signal MA (Oscillator mode)
- Signal MA with glow effect (Oscillator mode)
- Fill between momentum and signal MA highlighting bullish and bearish zones
- Zero baseline
- Equity curve with glow effect, colored by previous bar's signal direction (Equity Line mode)
- Candle coloring on the price chart reflecting the previous confirmed signal in both modes
- Performance table in Equity Line mode: Strategy Return, Buy and Hold, vs Buy and Hold, Max Drawdown Total, Max Drawdown per Trade, Sharpe Ratio, Sortino Ratio, Omega Ratio
Inputs 🎛️
- Source: price input for the filter
- Momentum Length: base length controlling the Sinc filter kernel size
- Momentum Smoothing: cutoff frequency parameter controlling the spectral boundary
- Post Smoothing: length of the smoothing applied to the filtered deviation
- Post Smoothing Style: EMA, DEMA, TEMA, WMA, or SMA
- MA Length: length of the signal MA applied to the smoothed momentum
- MA Style: EMA, DEMA, TEMA, WMA, or SMA
- View: switch between Oscillator and Equity Line
- Equity Start Date: starting date for the equity simulation and performance metrics
Colors 🎨
5 Astral Vision presets + custom override. Default: Futura.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions.
نص برمجي مفتوح المصدر
بروح 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. اقرأ المزيد في شروط الاستخدام.