OPEN-SOURCE SCRIPT
מעודכן

LiquidFlow Reversal Engine

1 084
LiquidFlow Reversal Engine v1.0
Core Components
1. Order Flow Momentum Engine

Calculates buying vs selling pressure from candle structure × volume
Tracks cumulative order flow delta with fast/slow EMA crossover for trend direction
Detects OF divergences (price vs momentum disagreement)
Candles are color-coded: green shades = bullish OF, red shades = bearish OF
2. Liquidity Zone Detection

Identifies zones from pivot highs/lows with configurable lookback
Real zones (blue, solid border): 2+ touches + volume confirmation — these are used for entries
Fake zones (grey, dashed border): single wick grabs with low volume — these are filtered OUT
Fake detection uses wick-to-range ratio (>60% wick + low volume = likely stop hunt)
3. Fibonacci Auto-Levels

Auto-detects swing high/low over 80 bars, plots 0.236/0.382/0.500/0.618/0.786
Adds confluence scoring when price aligns with fib + liquidity zone
4. RSI + Divergence

Standard RSI with OB/OS detection
Pivot-based divergence detection (higher RSI lows on lower price lows = bullish div)
Entry Logic (Reversal Only — Never Breakouts)
LONG signal requires ALL of:

Price at a real support zone (not fake)
OF momentum shifting bullish (strong pressure or divergence)
RSI oversold/recovering or showing bullish divergence
Price bouncing (close > open, close > prior low) — NOT breaking down
SHORT signal — mirror logic at real resistance zones.

Dashboard (top-right)
Shows: OF Trend, OF Strength, RSI, Divergences, Fib position, Zone status, Signal, Confluence score (out of 8).
הערות שחרור
What Was Wrong (v1.0)
Looking at your chart — the LONG signals at ~4,660 fired right before price dumped, and the SHORT signals at ~4,710 fired while price was still consolidating. The old logic was too loose: it only checked "is price near a zone + RSI oversold + OF positive" — that's not enough to confirm a reversal.

New Entry Logic (v2.0) — 6 Mandatory Gates
For a LONG signal to fire, ALL 6 must be true:
Gate Condition Why
1 HTF (1H) trend is BULLISH — close > 50 EMA + slope positive Prevents counter-trend longs in a downtrend
2 Swing low exists as a liquidity pool Stop losses sit below swing lows
3 Price SWEPT below that low — wick pierced it, candle closed above The stop hunt / liquidity grab happened
4 Price returned to RETEST that swept level (within 40 bars) The retest confirms the level matters
5 Inside bar formed at/near the swept level Coiling = institutions accumulating
6 Inside bar broke UPWARD — close > mother bar high Confirmed directional commitment
For a SHORT — exact mirror:
HTF bearish + swing high swept + retest + inside bar near level + IB breaks DOWN.

New Features Added
⚡ Sweep markers — shows exactly where liquidity was grabbed
IB squares — purple "IB" markers on every inside bar
HTF EMA line on chart (green/red based on trend)
Zone states: FAKE → REAL → SWEPT → TRADED (with different colors)
Swept levels counter in the dashboard — shows pending setups
Stop loss reference — auto-calculated from mother bar
הערות שחרור
(Deprecated)

⚠️ This version is deprecated.

This script no longer reflects the current logic.

A new and improved private version is now available.

Contact for access.
הערות שחרור
Automatically maps liquidity zones on your chart from swing pivot highs and lows.

WHAT IT DOES:
- Detects swing highs as resistance zones and swing lows as support zones
- Tracks how many times each zone has been touched
- Highlights strong zones (3+ touches) in blue with solid borders
- Labels each zone with type (SUP/RES), strength, and touch count
- Works on any instrument and timeframe

HOW TO READ IT:
- Red zones = Resistance (price rejected here from above)
- Green zones = Support (price bounced here from below)
- Blue zones = Strong levels tested 3+ times — these are the ones institutions are defending

SETTINGS:
- Pivot Lookback: controls how significant a swing point must be
- Zone Width: how thick the zone band is
- Max Zones: limit how many zones appear on chart

This is the free version of the LiquidFlow engine. It maps where liquidity sits — but it doesn't tell you which zones are fake traps vs real institutional levels, and it doesn't detect when a zone gets swept.

The full version (v3.0) adds fake vs real zone scoring, liquidity sweep detection, order flow momentum, Fibonacci, RSI divergence, inside bar confirmation, and an on-chart dashboard.

Check my bio for the Latest version(v3.0).

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.