INVITE-ONLY SCRIPT
Telah dikemas kini

[GetSparx] Lacuna Pro

366
[GetSparx] Lacuna Pro – Institutional Liquidity Framework
This indicator is a premium Smart Money Concepts (SMC) trading toolkit designed to help traders identify high-probability entry and exit zones by visualizing real-time market inefficiencies. It combines Fair Value Gaps (FVGs), Break of Structure (BOS), Change of Character (CHoCH), and Supply & Demand Zones into a unified, configurable framework.

Unlike many public indicators that simply "overlay concepts", this indicator implements strict internal validation to filter out noise and provide only institutional-grade levels — making it a valuable execution layer for SMC-based strategies.

🧠 What the Script Does – and Why the Combination Matters
This is more than just a combination of known SMC tools — it's a complete workflow assistant:

-FVGs highlight where liquidity is likely resting due to institutional imbalance.

-BOS & CHoCH define structural context: whether the market is trending or shifting.

-Supply & Demand Zones show where institutions are likely to react.

-Each component works together to create a layered confluence system:

-FVG inside a Demand Zone after a Bullish CHoCH → High-probability Long Setup

-Bearish BOS into a Supply Zone + fresh Bearish FVG → High-probability Short Setup

📘 Core Concepts Explained
Fair Value Gap (FVG)
FVGs occur when price moves with strong momentum and leaves a gap between candles — suggesting inefficiency. Bullish FVGs lie below price; bearish ones above. Price often returns to these levels before continuing.

An FVG is detected when a three-candle sequence reveals a price imbalance:

-Bullish: Candle 2’s low is higher than Candle 1’s high
-Bearish: Candle 2’s high is lower than Candle 1’s low

These setups indicate a sudden burst of institutional momentum, often causing price to revisit the gap for rebalancing.

Break of Structure (BOS)
A BOS signals trend continuation when price breaks the previous swing high or low in the direction of the current trend.

The script uses a 3-bar pivot system to detect local swing highs and lows — a swing high forms when the highest candle is flanked by two lower highs on each side (and vice versa for swing lows).

A BOS is confirmed when price closes beyond the most recent swing point in alignment with the current trend direction.

Change of Character (CHoCH)
A CHoCH signals a potential trend reversal by breaking a structure level in the opposite direction of the prevailing trend.

It is detected when price breaks the most recent opposing swing and simultaneously flips the internal trend state.

CHoCH events always take precedence over BOS to avoid conflicting signals.
The internal trend engine ensures that these structural shifts are valid and not caused by random volatility.

Supply & Demand Zones
These zones mark institutional interest and are formed using precise price action rules — not arbitrary support/resistance.

A valid zone begins when a small-bodied base candle (such as a star or doji) appears at a local swing point. This candle must be followed by a strong impulse candle — either a bullish engulfing (for demand) or bearish breakout (for supply).

-Demand Zone: From the base candle's low to the impulse candle's high
-Supply Zone: From the base candle's high to the impulse candle's low

These zones represent likely institutional entries or exits, often acting as magnets or rejection areas. Once price decisively breaks through a zone, it is automatically removed — keeping the chart clean and relevant.

Zone Detection Logic – When a Zone Is Drawn or Skipped
Below are the precise rules used to determine whether a Supply or Demand Zone is valid and shown on the chart
A Supply or Demand Zone is only drawn if all of the following conditions are met:

-A small-bodied base candle forms at a local high or low (body size below threshold)

-The base candle is followed by a strong impulse candle (engulfing or breakout)

-The impulse direction matches the expected context (e.g., bearish impulse from swing high = Supply)

-The candle wicks do not invalidate the structure (e.g., no long opposing wick that retraces the move)

-The zone meets the minimum size threshold based on % or ATR filter

If any of these criteria are not satisfied, the zone is skipped to avoid false or weak levels.
This ensures only clean, institutional-grade Supply & Demand Zones are shown on the chart.
(e.g. small-bodied star + bullish engulfing at swing low = Demand Zone, or bearish breakout at swing high = Supply Zone).

🔍 Core Functionality & Original Features
1. 📉 Fair Value Gaps (FVGs) – Dynamic, Validated, and Clean
Unlike scripts that draw every gap, this script applies strict quality control to ensure only meaningful FVGs appear:

Minimum Threshold Filtering
Filters out small or noisy gaps by requiring each FVG to exceed a % or ATR-based size threshold. Prevents micro-gap clutter on lower timeframes.

Momentum Candle Verification
Requires a strong middle candle (candle 2) between two extremes. Large opposing wicks invalidate the setup.

Partial Fill Adjustment
When price partially fills a gap, the FVG box automatically shrinks to show only the remaining imbalance. If fully filled, the box is removed.

Multi-Timeframe Overlays
View institutional gaps from 15m, 1H, 4H, or Daily overlaid onto any chart for top-down analysis and entry refinement.

2. 🧱 Structural Shifts – BOS & CHoCH
Structural logic is built around pivot detection with real-time trend state awareness:

Pivot Logic (Customizable Strength)
Local highs/lows are detected using pivot length (default: 3 bars left/right). Breaks are only confirmed if they align with the internal trend state.

BOS = Continuation
Breaks a swing in trend direction (e.g., HL → HH → BOS at previous HH)

CHoCH = Reversal
Breaks a structure against trend (e.g., HH → HL → break of HL = Bearish CHoCH)

Conflict Resolution
If both BOS and CHoCH could trigger, CHoCH takes priority. This avoids false positives and ensures a single, clear structure signal per swing.

Styling & Visibility
All structure lines and labels are customizable — colors, line style (solid/dashed), and which signals to display (BOS/CHoCH/both).

3. 🧠 Supply & Demand Zones – Smart Detection & Maintenance
These zones are generated using strict price action logic, not arbitrary support/resistance lines:

-Formation Conditions

-Small-bodied "base candle" at a local high/low

-Followed by an impulse candle (bullish/bearish engulfing or breakout)

-Zone Bounds

-Demand: From base candle low to impulse high

-Supply: From base candle high to impulse low

Automatic Cleanup
Once price decisively pierces a zone, it’s automatically removed from the chart. This keeps the display relevant and clutter-free.

Multi-Timeframe Zones
Toggle zones from your current timeframe or overlay from 1H, 4H, and Daily — ideal for confluence stacking.

Zone Compression Filtering
Optional compression % ensures overlapping zones are combined logically to reduce redundancy.

🧩 How It Works Together – Practical Usage Flow
This indicator is designed to follow a structured workflow used by institutional-style traders:

Trend Structure
Identify trend using BOS and CHoCH on your timeframe.

Liquidity Zones
Look for supply/demand zones aligning with the structural bias.

Execution Areas
Wait for an unfilled FVG in confluence with the above conditions.

📸 Screenshot Captions
Screenshot 1: CHoCH + Demand Zone + Bullish FVG
📌 Reversal Setup with Confluence
syot kilat
syot kilat
A Bullish CHoCH confirms a structural shift. Price enters a Demand Zone and reacts from an unfilled Bullish FVG, creating a high-probability long opportunity.

Screenshot 2: Bearish BOS + FVG Fill
📌 Trend Continuation Confirmation
syot kilat
syot kilat
Price breaks a swing low, triggering a Bearish BOS. A Bearish FVG forms and price returns to fill it before continuing lower — validating the trend and the gap.

Screenshot 3: Multi-Timeframe Overlay (FVGs from 1H and 4H)
📌 Top-Down Liquidity Mapping
syot kilat
syot kilat
Overlaid 1H and 4H FVGs provide institutional-level insight on lower timeframes. Combined with structure signals, this supports precise entry alignment across timeframes.
As price partially fills a bullish gap, the FVG box auto-adjusts to show only the remaining imbalance. Fully filled zones are automatically removed, keeping the chart clean.

Screenshot 4: Supply Zone Rejection
📌 Institutional Supply in Action
syot kilat
syot kilat
Price enters a Supply Zone formed from a base candle + bearish impulse. A sharp rejection confirms active sell-side interest at this level. Zone opgevuld box verdwijnt

Screenshot 5: Bullish BOS + Internal Trend Logic
📌 Trend Continuation with Structure Awareness
syot kilat
syot kilat
A Higher Low forms, followed by a Higher High, triggering a Bullish BOS. The internal trend engine confirms direction and filters false reversals.

Screenshot 6: Zone Compression Logic
📌 Smart Zone Consolidation
syot kilat
syot kilat
Closely overlapping supply zones are merged using compression logic to prevent clutter. Only the strongest institutional levels remain visible.

Full Customization Panel
You can configure:

-FVG display per timeframe + color scheme

-BOS/CHoCH styling, label text, and detection toggles

-Zone settings: visibility, compression %, length

-Auto-cleanup behavior for FVGs and zones

🔐 Why Invite-Only?
This indicator contains original logic not available in public indicators, including:

-Momentum-candle verified FVGs

-Real-time partial fill trimming

-Auto-removal of invalidated structure/zones

-Conflict-aware BOS/CHoCH logic

-Multi-timeframe overlays with internal state tracking

-Proprietary compression-based zone filtering

This script is part of a private paid offering. It is not based on reused or repackaged educational code. The logic and structure management are exclusive to this implementation.

Disclaimer
This tool is for educational and analytical use only. It does not provide financial advice or trading signals. Always use proper risk management and do your own due diligence.
Nota Keluaran
-Added functionality to dynamically or static extend a FVG
-Added tooltips for important settings

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.