OPEN-SOURCE SCRIPT
Aggiornato Oath Keeper

Oath Keeper - Advanced Money Flow & Market Dynamics Indicator
A sophisticated indicator that analyzes market dynamics through money flow patterns, volume analysis, and liquidation detection to identify high-probability trading opportunities.
Core Features:
• Smart Money Flow Analysis: Proprietary calculation of institutional money movement
• Volume-Enhanced Signals: Multi-timeframe volume confirmation
• Liquidation Detection: Identifies potential forced liquidation events
• Advanced Signal Classification: Regular, Super, and Fakeout signals
Signal Types:
1. Regular Signals (Green/Purple Circles)
• Volume-confirmed momentum shifts
• Money flow threshold breaches
• Institutional participation confirmation
2. Super Signals (Green/Purple Squares)
• Deep oversold/overbought reversals
• High-volume rejection patterns
• Liquidation event confirmation
3. Fakeout Signals (Red X)
• Rapid sentiment shifts
• Trap detection
• False breakout warnings
Visual Components:
• Dynamic Money Flow Line (White/Purple)
• Order Flow Clouds (Green/Red with high transparency)
• Reference Levels (20, 50, 80)
• Multi-type Signal Markers
• Color-coded momentum visualization
Interpretation Guide:
• Green Cloud: Bullish money flow dominance
• Red Cloud: Bearish money flow dominance
• Circle Markers: Standard reversals
• Square Markers: High-conviction moves
• X Markers: Potential trap zones
Best Practices:
• Most effective on 1H+ timeframes
• Use with major trading pairs
• Wait for candle close confirmation
• Combine with support/resistance levels
• Monitor volume confirmation
• Use multiple timeframe analysis
This indicator helps traders identify institutional money flow, potential liquidation events, and market reversals by analyzing volume patterns and money flow dynamics, providing multiple confirmation layers for trade decisions.
Note: Performance varies with market conditions and timeframes. Always employ proper risk management.
A sophisticated indicator that analyzes market dynamics through money flow patterns, volume analysis, and liquidation detection to identify high-probability trading opportunities.
Core Features:
• Smart Money Flow Analysis: Proprietary calculation of institutional money movement
• Volume-Enhanced Signals: Multi-timeframe volume confirmation
• Liquidation Detection: Identifies potential forced liquidation events
• Advanced Signal Classification: Regular, Super, and Fakeout signals
Signal Types:
1. Regular Signals (Green/Purple Circles)
• Volume-confirmed momentum shifts
• Money flow threshold breaches
• Institutional participation confirmation
2. Super Signals (Green/Purple Squares)
• Deep oversold/overbought reversals
• High-volume rejection patterns
• Liquidation event confirmation
3. Fakeout Signals (Red X)
• Rapid sentiment shifts
• Trap detection
• False breakout warnings
Visual Components:
• Dynamic Money Flow Line (White/Purple)
• Order Flow Clouds (Green/Red with high transparency)
• Reference Levels (20, 50, 80)
• Multi-type Signal Markers
• Color-coded momentum visualization
Interpretation Guide:
• Green Cloud: Bullish money flow dominance
• Red Cloud: Bearish money flow dominance
• Circle Markers: Standard reversals
• Square Markers: High-conviction moves
• X Markers: Potential trap zones
Best Practices:
• Most effective on 1H+ timeframes
• Use with major trading pairs
• Wait for candle close confirmation
• Combine with support/resistance levels
• Monitor volume confirmation
• Use multiple timeframe analysis
This indicator helps traders identify institutional money flow, potential liquidation events, and market reversals by analyzing volume patterns and money flow dynamics, providing multiple confirmation layers for trade decisions.
Note: Performance varies with market conditions and timeframes. Always employ proper risk management.
Note di rilascio
Oath Keeper – Money Flow & Market Dynamics IndicatorOverview:
Oath Keeper is an original indicator designed to help traders interpret market dynamics by combining proprietary money flow analysis, volume-based confirmation, and liquidation event detection. This script integrates multiple analytical methods to provide a comprehensive view of institutional activity, momentum shifts, and potential reversal zones.
How It Works:
Money Flow Analysis: Utilizes a custom algorithm to estimate institutional money movement, highlighting periods of accumulation or distribution. The dynamic money flow line (white/purple) visually represents these shifts.
Volume Confirmation: Incorporates multi-timeframe volume analysis to validate momentum changes and filter out low-probability signals. Volume-enhanced signals ensure that only moves supported by significant trading activity are highlighted.
Liquidation Detection: Identifies potential forced liquidation events by analyzing abrupt volume spikes and price movements, which often precede sharp reversals or continuations.
Signal Classification:
Regular Signals (Green/Purple Circles): Triggered when money flow and volume thresholds are met, indicating likely momentum shifts with institutional backing.
Super Signals (Green/Purple Squares): Appear during extreme overbought/oversold conditions, confirmed by high-volume rejection or liquidation patterns.
Fakeout Signals (Red X): Mark rapid sentiment changes or potential trap zones, warning of false breakouts or reversals.
Visual Components:
Money Flow Line: Tracks institutional activity and momentum direction.
Order Flow Clouds: Green/red clouds (with transparency) visualize dominant money flow, distinguishing bullish from bearish phases.
Reference Levels: Key levels (20, 50, 80) provide context for interpreting money flow strength.
Signal Markers: Color-coded circles, squares, and X’s differentiate between standard, high-conviction, and potential fakeout signals.
How to Use:
Interpretation:
Green cloud = bullish institutional flow
Red cloud = bearish institutional flow
Circles = standard reversal signals
Squares = high-conviction, volume-backed moves
X’s = possible traps or false signals
Best Practices:
Most effective on 1H or higher timeframes
Use with major trading pairs for best results
Confirm signals with candle closes and volume spikes
Combine with support/resistance and multi-timeframe analysis
Always apply sound risk management
Originality & Integration:
Oath Keeper is not a simple mashup; it uniquely integrates money flow, volume, and liquidation analysis into a single framework. Each component works together to provide layered confirmation, helping traders distinguish between genuine institutional moves and market noise.
Disclaimer:
Performance may vary with market conditions and timeframes. This tool is for informational purposes and should be used alongside other analysis methods and prudent risk management.
Would you like to further tailor any section or add more detail about the underlying calculations or methods?
Note di rilascio
Improved: indicator no longer squeezes the paneRemoved raw close plot; optional normalized price is OFF by default and hidden from display.
New: macro vs micro pivot engine
Separate inputs for Macro (major) and Micro (minor) pivot left/right widths.
Macro pivots plot as white circles; Micro pivots as faint white circles.
New: full divergence suite on Money Flow
Regular Bull (green circle), Regular Bear (purple circle).
Hidden Bull (green square), Hidden Bear (purple square).
Signals plot on the oscillator at the confirmed pivot bar.
New: strong reversal highlighting
When volume/“liquidation” confluence aligns with a divergence:
Strong Bull shown in white.
Strong Bear shown in red.
Kept: legacy signals and filters
Bullish/Bearish cross signals (65/35) with volume check.
Fakeout detection.
Liquidation alert.
New: visual connector lines (toggle)
Optional thin lines linking MF pivot-to-pivot for each divergence.
Inputs/Toggles
Money Flow length, Volume MA length.
Macro/Micro pivot widths.
Show Macro, Show Micro, Show Divergence Connector Lines.
Show Price (normalized) [OFF by default; does not affect scaling].
Alerts
Macro/Micro: Regular Bull/Bear, Hidden Bull/Bear.
Legacy: Bullish/Bearish, Super Bullish/Bearish, Fakeout, Liquidation.
Behavior/Compliance
Divergences use ta.pivothigh/ta.pivotlow and print only after confirmation (no bar repainting after confirmation; past signals do not move).
No external libraries; Pine v6.
Performance-friendly (single-pass calculations; optional visuals can be disabled).
Visual summary
Above 50: white line with green-tinted cloud.
Below 50: purple line with red-tinted cloud.
Macro pivots = white circles; divergences colored as listed above; strong reversals highlighted in white/red.
This update focuses on clearer bias, structured divergences (macro vs micro, regular vs hidden), higher-quality “strong” signals with volume/liquidation confluence, and cleaner defaults to avoid pane compression.
Note di rilascio
Cleaner chart (less clutter)Removed on-chart score panel table (Bull / Bear / Liq / Regime box)
Removed bull & bear score overlay lines (red/green lines under money flow)
Removed normalized price plot (no extra flat line on the pane)
Pane now focuses on money flow, cloud fill, signals, and divergences only
Signals & logic
Composite scoring (0–100) still drives bull/bear triangles — not shown as separate lines
Cooldown bars (default 5) — reduces back-to-back same-direction signals
HTF trend filter — optional higher-timeframe gate (default 4H, MA 50)
Adaptive liquidation detection — volume spike + ATR wick + configurable price jump %
Divergences
Macro divergences on by default (regular + hidden, pivot markers + connector lines)
Micro divergences off by default (enable in settings if you want more noise)
Fixed broken pivot/divergence code from earlier partial merge
Alerts
Rich dynamic messages via alert() — score, HTF, symbol, timeframe, ATR (liq), MF + scores (div)
Static alertcondition() entries for TradingView alert picker (simple labels)
To get full payload: create alert → condition “Any alert() function call”
Fixed compile error: alertcondition() cannot use dynamic strings (CE10123)
Settings organization
Grouped inputs: Core, Liquidation, HTF Trend Filter, Signals, Divergences
Main signals use triangles (green up / purple down) for easier visibility
Bug fixes
Restored missing inputs (showMacro, pivot lengths, connector lines, etc.)
Removed dead references (superBullSignal, superBearSignal, fakeoutSignal)
Pine Script v6 — compiles clean
Note di rilascio
Oath Keeper is now an overlay. Everything that used to live in a separate pane below your chart draws directly on the candles, and divergences build in real time as the live candle moves instead of appearing three bars after the fact.Divergences form live on the chart. A confirmed pivot needs Right Bars of confirmation, so divergences always printed late — after the move had started. v3 adds provisional pivot tracking: a bar qualifies as a developing pivot if it's the extreme of its left-side bars and of every bar since, including the candle that's still ticking. A dashed line stretches from the last confirmed pivot to the developing one, updating tick by tick, with a hollow ◇ that fills into a solid ◆ when the pivot confirms. If price invalidates it, the drawing removes itself. ⚠️ Forming divergences repaint by design — that's the trade-off for early warning. Dashed = heads-up, solid = signal.
Impending Divergence Cloud. The trigger price for the next divergence is knowable in advance: a bearish div needs price above the last pivot high while money flow stays weaker than it was at that pivot. v3 paints that band before price gets there — projected forward, dotted border, brightening as price approaches (nearly invisible at the arm distance, glowing when price is in the band). Only arms when money flow is already diverging by a minimum gap and price is within a set ATR distance. New alerts fire on zone entry.
Volume-backed divergences recolor. A divergence printed on an abnormal-volume bar is a different animal from one printed on quiet drift — that's real supply/demand refusing to follow price. Those diamonds turn red for bear and white for bull, while everything else keeps the standard palette. Qualifies at 1.8× the volume MA on the pivot bar, or on any bar the liquidation detector already flagged. Connector lines and the live forming marker follow the same color, and dedicated alerts carry the volume ratio in the payload.
Regime marks are now dots, and far more selective. The old A/D letters fired on a bare 45/55 midline flip — near-constant on low timeframes. Now four stacked filters: deep threshold cross (28/72), 20-bar cooldown, volume confirmation (1.2× MA), and a 30-bar extreme requirement. Optional HTF alignment for the strictest setting.
Cleaner chart. Diamonds carry the signal — regular solid, hidden dimmed, micro smaller and fainter. Old divergences age out via Keep Last N Divergences (default 6). Connector transparency is adjustable. Text labels, the liquidation background band, and the divergence confirmation flash are all off by default — each a one-click toggle.
Also: TradingView-native palette (green #2EBD85 / red #F23645), money-flow candle tinting with opacity scaled to distance from the midline, and a compact ⚔ OATH KEEPER info table (flow, scores, HTF, live forming status, zone proximity) placeable in any corner.
New settings groups: Volume-Backed Divergences, Real-Time, Impending Div Zones, Display. All previous alerts intact, with forming-divergence, zone-entry, and volume-backed alerts added.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.