OPEN-SOURCE SCRIPT

Liquidity Structure Framework [PakunFX]

547
Liquidity Sequence Framework [PakunFX]

Liquidity Sequence Framework (LSF) is a market structure analysis indicator designed to visualize the progression of liquidity events, structure shifts, and Fair Value Gaps (FVGs) within a single analytical framework.

Instead of focusing on individual signals, the indicator organizes multiple market events into a sequential process, helping traders observe how price structure develops over time. The script combines swing structure, liquidity sweeps, trend filtering, and Fair Value Gap detection into a unified charting tool.

Features

  • External and Internal Swing Structure detection
  • Liquidity Sweep identification (SSL / BSL)
  • Bullish and Bearish Structure Shift detection
  • Automatic Fair Value Gap (FVG) detection
  • EMA-based trend filter
  • Premium / Discount (Equilibrium) filter
  • Configurable setup conditions
  • Visual sequence tracking with alerts


How it Works

The indicator monitors market structure using external and internal swing highs and lows. When liquidity is swept beyond a previous swing level, a new sequence begins. The script then tracks whether price confirms a structure shift and subsequently forms a Fair Value Gap within a configurable sequence window.
Trend filtering can be applied using Fast and Slow EMA conditions, while optional Premium / Discount and Fair Value Gap requirements allow users to customize how potential setups are displayed.

Display Elements

  • External Swing High / Low
  • Internal Swing High / Low
  • Liquidity Sweep markers (SSL / BSL)
  • Structure Shift markers
  • Active Fair Value Gap zones
  • Fast and Slow EMA
  • Equilibrium level
  • Setup markers


Alerts

Alerts are available for:

  • Liquidity Sweep
  • Bullish Structure Shift
  • Bearish Structure Shift
  • Bullish Sequence Setup
  • Bearish Sequence Setup


These alerts are intended to notify users when predefined analytical conditions are detected.

Notes

Liquidity Sequence Framework is designed as a market analysis tool. It visualizes structural relationships between liquidity events and price development but does not generate trading recommendations or predict future market direction.

Disclaimer

This script is provided for educational and research purposes only.

All calculations are based on historical price data. The displayed structures, Fair Value Gaps, and sequence conditions are intended to support chart analysis and should not be interpreted as guarantees of future market behavior or trading performance.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.