OPEN-SOURCE SCRIPT
Atualizado BLUF Regime Overlay

paints the current gamma regime on the chart to show max pain, gamma flip, and major pain points.
Notas de Lançamento
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.