OPEN-SOURCE SCRIPT
已更新 LiqSweep+iFVG indicator

LiqSweep + iFVG is a multi-module liquidity and market-structure indicator built around a liquidity sweep → reversal confirmation model.
CORE SIGNAL ENGINE
• Session Liquidity
* Tracks NY, London, and Asia session highs/lows.
* Levels remain active until first touched.
* Configurable number of untouched levels can be kept.
• Liquidity Raids / Sweeps
* Distinguishes between a normal touch and a true raid.
* A raid must exceed the liquidity level by a configurable buffer.
* Valid raids arm a potential reversal.
* NY, London, and Asia raids can be independently enabled for signals.
• iFVG Reversal
* Uses Fair Value Gaps as the primary reversal confirmation.
* A bullish FVG can invert for a short setup after a high raid.
* A bearish FVG can invert for a long setup after a low raid.
* Inversion requires a candle body close through the far edge.
* FVG size and lookback are configurable.
• Alternative Trigger
* Instead of iFVG inversion, the indicator can use a close back through the raided liquidity level.
• Raid Expiration
* Each raid remains valid only for a configurable time window.
* If no trigger occurs, the setup expires.
CONFLUENCE & CONTEXT
• Higher-Timeframe FVG
* Optional 5m, 15m, 1H, 4H, or Daily FVG filter.
* Can require price to interact with a live HTF FVG before a signal is allowed.
• Premium / Discount
* Calculates a configurable dealing range.
* Displays Premium, Equilibrium (50%), and Discount zones.
* Used as market-location context rather than a mandatory entry filter.
• Equal Highs / Equal Lows
* Detects EQH, EQL, REH, and REL structures.
* Treats these areas as potential resting liquidity.
* EQH/EQL raids can optionally arm reversals, but this is disabled by default.
• Williams Fractals / Swing Points
* Marks confirmed swing highs and swing lows.
* Configurable lookback/period.
* Used primarily for market-structure context.
TIMING & VISUALIZATION
• Configurable NY-time entry window.
• Session range boxes.
• Session liquidity lines.
• RAID and HIT labels.
• FVG boxes and inverted FVG visualization.
• Optional HTF FVG boxes.
• EQH/EQL lines.
• Swing-point markers.
• Armed-state background.
• LONG/SHORT entry markers.
OVERALL MODEL
Liquidity → Raid/Sweep → Reversal Armed → iFVG Inversion → Signal
The main trading logic is the liquidity raid + reversal confirmation. Premium/Discount, Williams fractals, EQH/EQL, and session structure provide additional market context, while HTF FVG can act as an actual optional signal filter.
CORE SIGNAL ENGINE
• Session Liquidity
* Tracks NY, London, and Asia session highs/lows.
* Levels remain active until first touched.
* Configurable number of untouched levels can be kept.
• Liquidity Raids / Sweeps
* Distinguishes between a normal touch and a true raid.
* A raid must exceed the liquidity level by a configurable buffer.
* Valid raids arm a potential reversal.
* NY, London, and Asia raids can be independently enabled for signals.
• iFVG Reversal
* Uses Fair Value Gaps as the primary reversal confirmation.
* A bullish FVG can invert for a short setup after a high raid.
* A bearish FVG can invert for a long setup after a low raid.
* Inversion requires a candle body close through the far edge.
* FVG size and lookback are configurable.
• Alternative Trigger
* Instead of iFVG inversion, the indicator can use a close back through the raided liquidity level.
• Raid Expiration
* Each raid remains valid only for a configurable time window.
* If no trigger occurs, the setup expires.
CONFLUENCE & CONTEXT
• Higher-Timeframe FVG
* Optional 5m, 15m, 1H, 4H, or Daily FVG filter.
* Can require price to interact with a live HTF FVG before a signal is allowed.
• Premium / Discount
* Calculates a configurable dealing range.
* Displays Premium, Equilibrium (50%), and Discount zones.
* Used as market-location context rather than a mandatory entry filter.
• Equal Highs / Equal Lows
* Detects EQH, EQL, REH, and REL structures.
* Treats these areas as potential resting liquidity.
* EQH/EQL raids can optionally arm reversals, but this is disabled by default.
• Williams Fractals / Swing Points
* Marks confirmed swing highs and swing lows.
* Configurable lookback/period.
* Used primarily for market-structure context.
TIMING & VISUALIZATION
• Configurable NY-time entry window.
• Session range boxes.
• Session liquidity lines.
• RAID and HIT labels.
• FVG boxes and inverted FVG visualization.
• Optional HTF FVG boxes.
• EQH/EQL lines.
• Swing-point markers.
• Armed-state background.
• LONG/SHORT entry markers.
OVERALL MODEL
Liquidity → Raid/Sweep → Reversal Armed → iFVG Inversion → Signal
The main trading logic is the liquidity raid + reversal confirmation. Premium/Discount, Williams fractals, EQH/EQL, and session structure provide additional market context, while HTF FVG can act as an actual optional signal filter.
發行說明
Removed some clutter.發行說明
ACTUALLY removed some clutter... 開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。