PROTECTED SOURCE SCRIPT

Kijun Equilibria v3.0 [by Oberlunar]

16
Kijun Equilibria v3.0 [by Oberlunar] is an equilibrium-based indicator that builds a multi-timeframe “Kijun cloud” and adds a mean-reversion (pullback) detector on top of it. The equilibrium line can be computed using Adaptive Envelope, Ichimoku Midrange, KAMA, HMA, EMA, or SMA. The script calculates the selected equilibrium on the chart timeframe and on three additional user-selected timeframes, then uses the highest and lowest equilibrium values to form a cloud that highlights where timeframes disagree (dispersion) and where they compress into a tighter balance zone.

snapshot

Directional context is summarized through a per-timeframe bias score and an aggregated consensus bias (LONG, SHORT, or NEUTRAL). Pullback (PB) conditions are evaluated with an Ornstein–Uhlenbeck model applied to the deviation between price and the equilibrium line; the script derives a z-like stretch measure and a normalized κ (kappa) strength, and can optionally adapt the z-threshold based on recent behavior.

snapshot

When a stretch condition is followed by a re-entry/cross back toward the cloud or baseline, the indicator can print pullback labels and/or a graded mean-reversion background, depending on the selected visual options. The fog fills are a visual aid that shades the space between equilibrium lines across timeframes to make dispersion and compression immediately visible.

snapshot

An optional Sideways module is included to explicitly detect consolidations using a composite range score (volatility compression and stability features) with entry/exit confirmations and a hard-break invalidation rule. When confirmed, the script can paint a translucent yellow band around the base equilibrium, optionally recolor candles, and optionally draw range boxes that track the active corridor.

snapshot

All signals and visuals are informational only, use no future-looking data (lookahead is disabled in all security calls), and should be validated on the user’s market and timeframe with appropriate risk management.


by Oberlunar 👁★

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.