OPEN-SOURCE SCRIPT
Normalized Resonator [LuxAlgo]

The Normalized Resonator indicator provides a specialized bandpass oscillator designed to isolate specific market cycles while maintaining a normalized scale for overbought and oversold analysis.
🔶 USAGE
The indicator can be used to identify cyclical turns in the market by isolating a specific frequency (period) and filtering out noise. Traders can use the oscillator to spot potential reversals when the price reaches extreme levels or when the main line crosses its signal line.
🔹 Trend Identification
Beyond reversal signals, the oscillator serves as a momentum and trend filter. When the oscillator is sustained above the zero line, it indicates a bullish cycle where the isolated frequency is currently in an upward phase. Conversely, values below zero indicate a bearish cycle. The distance from the zero line represents the strength of the cycle relative to its recent historical peaks.
🔹 Filtering and Momentum
The "Bandwidth" setting is crucial for practical application. A lower bandwidth (e.g., 0.1 - 0.3) creates a sharper filter that is highly selective of the central period, which is useful for identifying very specific recurring cycles but may increase lag. A wider bandwidth (e.g., 0.5 - 0.8) allows more price movement through, making the oscillator more reactive to momentum shifts and broader market swings.
🔹 Trading Signals
The script features built-in signals that appear on the main chart to highlight potential exhaustion points:
🔹 Combining with Price Action
For the best results, traders should look for confluence between the resonator signals and price action structures. For example, a bullish crossover occurring at a major horizontal support level or a trendline adds significant weight to the signal.
In trending markets, the resonator can be used to "buy the dip" by looking for bullish signals that occur when the higher-timeframe trend is up, rather than attempting to catch every reversal in both directions.
🔶 DETAILS
The script is built upon a digital resonator filter, which is a type of second-order bandpass filter. Unlike standard oscillators that use moving average differences, a resonator is mathematically tuned to "vibrate" at a specific frequency (the Center Period).
🔹 Normalization
Standard bandpass filters often have varying amplitudes depending on market volatility, which makes static levels difficult to use. This script solves this by implementing a normalization process. It calculates the highest absolute peak of the filter output over a rolling lookback period.
By dividing the raw filter output by this peak, the oscillator is squeezed into a range typically between -1 and +1, allowing for consistent Overbought (OB) and Oversold (OS) levels regardless of the asset's price scale or volatility.
🔶 SETTINGS
🔶 USAGE
The indicator can be used to identify cyclical turns in the market by isolating a specific frequency (period) and filtering out noise. Traders can use the oscillator to spot potential reversals when the price reaches extreme levels or when the main line crosses its signal line.
🔹 Trend Identification
Beyond reversal signals, the oscillator serves as a momentum and trend filter. When the oscillator is sustained above the zero line, it indicates a bullish cycle where the isolated frequency is currently in an upward phase. Conversely, values below zero indicate a bearish cycle. The distance from the zero line represents the strength of the cycle relative to its recent historical peaks.
🔹 Filtering and Momentum
The "Bandwidth" setting is crucial for practical application. A lower bandwidth (e.g., 0.1 - 0.3) creates a sharper filter that is highly selective of the central period, which is useful for identifying very specific recurring cycles but may increase lag. A wider bandwidth (e.g., 0.5 - 0.8) allows more price movement through, making the oscillator more reactive to momentum shifts and broader market swings.
🔹 Trading Signals
The script features built-in signals that appear on the main chart to highlight potential exhaustion points:
- Bullish Reversal: Indicated by a green "▲" label below the price. This occurs when the oscillator crosses above the signal line while below the oversold threshold.
- Bearish Reversal: Indicated by a red "▼" label above the price. This occurs when the oscillator crosses below the signal line while above the overbought threshold.
🔹 Combining with Price Action
For the best results, traders should look for confluence between the resonator signals and price action structures. For example, a bullish crossover occurring at a major horizontal support level or a trendline adds significant weight to the signal.
In trending markets, the resonator can be used to "buy the dip" by looking for bullish signals that occur when the higher-timeframe trend is up, rather than attempting to catch every reversal in both directions.
🔶 DETAILS
The script is built upon a digital resonator filter, which is a type of second-order bandpass filter. Unlike standard oscillators that use moving average differences, a resonator is mathematically tuned to "vibrate" at a specific frequency (the Center Period).
🔹 Normalization
Standard bandpass filters often have varying amplitudes depending on market volatility, which makes static levels difficult to use. This script solves this by implementing a normalization process. It calculates the highest absolute peak of the filter output over a rolling lookback period.
By dividing the raw filter output by this peak, the oscillator is squeezed into a range typically between -1 and +1, allowing for consistent Overbought (OB) and Oversold (OS) levels regardless of the asset's price scale or volatility.
🔶 SETTINGS
- Center Period: The primary cycle length (in bars) the filter aims to isolate.
- Bandwidth: Determines the width of the passband. Lower values result in a very sharp, selective filter. Higher values allow more frequencies to pass.
- Lookback Multiplier: Sets the normalization window as a multiple of the Center Period. A value of 1.0 means the peak is searched for over a window equal to the Center Period.
- Signal Line Period: The smoothing length for the Signal Line (EMA).
- Overbought/Oversold: The threshold levels used to trigger the chart signals.
- Signal Size: Adjusts the visual size of the "▲" and "▼" labels on the chart.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Build your own edge with AI: luxalgo.com
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Build your own edge with AI: luxalgo.com
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.