Uptrick: Liquid Reversal BandsIntroduction
Liquid Reversal Bands is an overlay indicator designed to help traders identify dynamic support and resistance zones, detect mean-reversion opportunities, and read price position within a volatility-aware envelope. Rather than using fixed standard deviation bands around a single moving average, this system builds its band width from multiple volatility components simultaneously, creating a more adaptive and stable envelope that responds to changing market conditions without overreacting to short-term noise. The candle coloring, fair value line, and band fills all carry live visual information, making it possible to assess market state and recent signal context at a glance without needing additional tools on the chart.
How It Works
The centerline, referred to as the Liquid Fair Value, is computed by blending an EMA and an ALMA with a fixed offset and phase bias, then applying a secondary smoothing pass. This produces a centerline that is faster than a plain EMA but more stable than a raw ALMA, reducing lag while avoiding erratic pivots.
Band width is calculated from four volatility components: the standard deviation of price deviation from the fair value, a standard ATR reading, an EMA of absolute deviation, and an EMA of bar range energy. These four components are weighted and blended into a single composite width value that is then smoothed again before being applied to the upper and lower bands. This approach means the bands widen during high-volatility conditions driven by any combination of momentum, range expansion, or sustained deviation, rather than relying on a single measure that may miss one type of volatility while overreacting to another.
Reversal signals are generated when price closes back inside a band after having closed outside it on the prior bar. This close-crossing logic filters out brief wicks and requires a confirmed return into the envelope before triggering. An optional cooldown parameter prevents back-to-back signals within a defined number of bars.
Candle coloring operates in two selectable modes. In Reversal Heat mode, candles are colored continuously based on their real-time position within the band range, shifting from the bullish teal near the lower band to the bearish magenta near the upper band, with a full gradient in between. In Latest Signal mode, all candles take the solid color of the most recent confirmed signal direction, holding that color until the opposite signal fires. This mode is useful for traders who want a persistent visual reminder of the current signal bias rather than a moment-to-moment position readout.
The fair value line uses a separate slope-based gradient that transitions between bull and bear color depending on the direction and smoothed magnitude of the centerline trend. Optional outer bands extend beyond the primary envelope and can be enabled to identify extreme extension zones.
Baseline Design Rationale
The Liquid Fair Value uses EMA and ALMA specifically because they address opposite weaknesses. A standard EMA is computationally stable and reacts smoothly to recent price but carries lag from its uniform weighting. ALMA uses a Gaussian-weighted kernel that concentrates sensitivity toward recent bars while suppressing older data, which reduces lag but can introduce instability on sharp reversals. Blending the two captures the smoothness and stability of the EMA alongside the reduced lag of the ALMA, producing a centerline that neither drags excessively in trends nor overreacts to brief spikes. The secondary EMA pass applied afterward further damps any residual instability from the ALMA component without reintroducing significant lag.
Features
Liquid Fair Value centerline blending EMA and ALMA with dual-pass smoothing for a stable yet responsive mid-line
Composite band width derived from four volatility sources: deviation standard deviation, ATR, absolute deviation EMA, and bar range energy EMA
Primary upper and lower bands with independent multiplier controls
Optional outer bands for identifying extreme price extension, each with its own multiplier
Candle Coloring Mode selector with two options: Reversal Heat for continuous gradient coloring based on live band position, and Latest Signal for persistent directional coloring based on the most recent confirmed signal
Slope-based gradient coloring on the fair value line, transitioning between bullish and bearish color depending on trend direction and strength
Slope sensitivity and smoothing controls to tune how quickly the fair value line color responds to directional changes
Close-crossing reversal signals that trigger only when price re-enters a band after a confirmed close outside it
Configurable signal cooldown to space out signals and reduce repetitive triggers in choppy conditions
Gradient band fills between the fair value and upper and lower bands using directional color transparency
Outer band fills rendered separately with their own transparency layer when enabled
Alert conditions for both buy and sell signals
Inputs
Source: The price series used for all calculations. Defaults to close.
Fair Value Length: Controls the lookback period for both the EMA and ALMA that form the Liquid Fair Value centerline. Higher values produce a smoother and slower centerline.
Z-Width Lookback: The lookback window used to compute deviation standard deviation and absolute deviation mean. Larger values stabilize band width but reduce responsiveness to recent volatility shifts.
Band Smoothness: Controls the final EMA smoothing applied to the composite band width. Higher values produce wider, more stable bands.
Upper Band Multiplier and Lower Band Multiplier: Scale the upper and lower band distances from the fair value independently. Higher values push the bands further out, producing fewer signal triggers.
Outer Upper Band Multiplier and Outer Lower Band Multiplier: Applied on top of the primary multipliers to define the outer band distance. Only visible when outer bands are enabled.
Candle Coloring Mode: Selects how candles are colored. Reversal Heat maps each candle continuously to its current position within the band range. Latest Signal holds the color of the most recent confirmed buy or sell signal until the opposite signal fires.
Show Signals: Toggle to enable or disable reversal signal labels on the chart.
Signal Cooldown: Minimum number of bars that must pass between consecutive signals. Set to zero to allow signals on every qualifying bar.
Show Outer Bands: Toggle to enable or disable the outer band plots and their fills.
Slope Smoothing Length: Controls how many bars are used to smooth the fair value slope before it is mapped to a color. Lower values make the line color react faster to direction changes.
Slope Color Sensitivity: Scales how aggressively the slope magnitude maps to the color gradient. Lower values cause the line to reach full bull or bear color more quickly.
Originality
Most band-based indicators derive their width from a single volatility measure, typically standard deviation or ATR alone. Liquid Reversal Bands constructs its width from a weighted blend of four distinct volatility inputs, each capturing a different aspect of market activity. The additional smoothing hierarchy applied to both the centerline and the width ensures that bands expand and contract in a measured way rather than spiking on single-bar outliers. The dual candle coloring system offers two meaningfully different visual modes: one that reflects continuous real-time price positioning within the envelope, and one that reflects confirmed signal direction as a persistent state, giving traders a choice between positional awareness and signal context depending on their preference. The slope gradient on the fair value line is driven by a normalized and smoothed slope calculation, making it resistant to brief direction changes while still reflecting genuine trend shifts.
Conclusion
Liquid Reversal Bands is built for traders who want a mean-reversion and trend context tool that adapts to volatility through multiple lenses simultaneously. The composite width model, the selectable candle coloring modes, and the close-crossing signal logic together produce a system designed for clarity, stability, and honest visual representation of price state within the envelope.
Disclaimer
This indicator is published for educational and analytical purposes only. It does not constitute financial advice. Past behavior of any indicator does not guarantee future results. Always apply your own analysis and risk management before making any trading decisions.
Pine Script® 인디케이터






















