OPEN-SOURCE SCRIPT
Updated

BLUF Regime Overlay

721
paints the current gamma regime on the chart to show max pain, gamma flip, and major pain points.
Release Notes
v3.2 — Major update. Volume gating removed; new Bull/Bear Flip layer.

The 6-component confluence is now 5-component — volume confirmation is out entirely. Side-by-side testing showed the volume-gated TREND chips were firing too often without earning their tier badges, while pure price-action regime trackers (BigBeluga-style trailing stops) gave cleaner flips on the same charts.

What's new:
- Bull/Bear Flip layer. Persistent regime state machine on close-based supertrend math — four ratcheting ATR trailing stops (1×/2×/3×/5×) extend from price; state flips when close breaches the outermost band in the opposite direction. Roughly 4-6 flips per 5m day instead of dozens of TREND chips. Each flip is stamped with the confluence tier at the flip bar (★ PRIME = 5/5 + MACD accel, ● STRONG = 4/5, ○ WEAK = 3/5).
- HVN-anchored stop highlight. When the active trailing stop sits within 0.2× ATR of a volume-profile peak, the line thickens and turns gold — "hard anchor" zones.
- Bull Flip / Bear Flip alerts and a new FLIP MODE dashboard row.

Defaults changed:
- TREND chips hidden by default (Bull/Bear flips are the primary visual now — re-enable in Inputs → "Show Regime Shift Signals" if you want the chip overlay back).
- HTF Mode now "Aligned" (was "Off").
- Flip Stop 4 ATR Mult default 5.0.
- Pine v6 upgrade.

Heads up: TradingView will reset deprecated inputs on first load — re-set the HTF Mode and Bull/Bear Flip groups if you had custom settings.

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.