OPEN-SOURCE SCRIPT
Atualizado 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.
Notas de Lançamento
Removed some clutter.Notas de Lançamento
ACTUALLY removed some clutter... 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.