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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.