Momentum Cycle Sentry [LuxAlgo]The Momentum Cycle Sentry indicator is a comprehensive momentum visualization tool designed to identify trend cycles, measure volatility extremes, and precisely track retracement phases through a unique multi-layered symmetric architecture.
🔶 USAGE
The indicator provides a high-fidelity view of market "flow" by mirroring price momentum across a zero line, creating a symmetric "cloud" whose width represents the intensity of the current move. It is primarily used to distinguish between strong trending expansion and temporary pullback cycles.
🔹 Trend Identification
Bullish Momentum: The oscillator cloud appears above and below the zero line in a teal (bullish) color.
Bearish Momentum: The oscillator cloud appears in a coral (bearish) color.
Width: An expanding cloud indicates increasing velocity, while a thinning cloud suggests a squeeze or waning interest.
🔹 Momentum Cycle Tracing
One of the core features of this tool is the Neon Path logic. When the indicator detects that momentum is cooling off against the prevailing trend (a retracement cycle):
The background cloud and candle colors dim to signify a "resting" phase in the market.
A Triple-Layer Glow activates directly on the oscillator's curve, making the retracement segments "light up" in a high-intensity version of the trend color.
This glow uses graduated transparency to create a neon-like halo, visualizing the exact path of the pullback as it moves toward the zero line.
Cross (X) markers appear on the zero line to provide a horizontal anchor for the duration of the retracement period.
🔹 Extreme Zones
The indicator features dynamic Overbought (OB) and Oversold (OS) corridors. When the oscillator enters these shaded gradient zones, the trend cycle is considered overextended. Traders can look for the oscillator to curve back toward the zero line as a sign of potential exhaustion or mean reversion.
🔶 DETAILS
🔹 Layered Oscillator Architecture
The script utilizes five distinct layers of Exponential Moving Average (EMA) smoothing applied to a base momentum calculation. This creates a "glow" effect where the inner core reacts to immediate price action while the outer layers represent the broader trend. The symmetric mirroring ensures that the visual weight of the momentum is balanced, making it easier to perceive the total "volume" of the move regardless of direction.
🔹 Dynamic Volatility Corridors
Unlike traditional oscillators with fixed levels (e.g., 70/30), the Momentum Cycle Sentry uses standard deviation-based bands that adapt to current market volatility. This ensures that the overbought and oversold thresholds are relevant to the specific asset and timeframe being traded.
🔶 SETTINGS
🔹 Settings
Base Length: Sets the lookback period for the underlying momentum calculation.
Smoothing: Determines the base EMA smoothing for the multi-layered layers.
Magnitude: A multiplier to scale the vertical height of the oscillator.
Retracement Sensitivity: Adjusts how quickly the script detects a pullback/retracement cycle on the curve.
🔹 Extreme Zones
OB/OS Lookback: The period used for the standard deviation calculation of the volatility bands.
Inner Multiplier: Sets the threshold for the start of the OB/OS corridor.
Outer Multiplier: Sets the threshold for the outer edge of the OB/OS corridor (historical extreme).
🔹 Visuals
Bullish/Bearish Color: Customizes the colors for uptrends and downtrends.
Base Transparency: Adjusts the transparency of the layered cloud effect.
Color Candles: Toggles the synchronization of price chart candles with the oscillator's momentum state.
Pine Script® indicator






















