OPEN-SOURCE SCRIPT
Liquidity Pressure Index (LPI)

Structured Classification of the Liquidity Pressure Index (LPI)
1. Conceptual Classification
The Liquidity Pressure Index (LPI) is a composite market activity indicator that quantifies four key drivers of short-term futures price movement:
- Participation (Volume)
- Positioning (Open Interest)
- Volatility (Candle Expansion vs ATR)
- Fair Value Deviation (VWAP Distance)
Therefore, the LPI does not primarily measure trend direction but rather the intensity and quality of market movement — effectively the market’s “energy state.”
Functionally, it is a regime and timing indicator.
--------------------------------------------------
2. Market Mechanics Behind the Four Components
Volume Spike Score → Participation Shock
Futures markets move sustainably only when new liquidity enters the market.
Volume spikes signal:
- aggressive market orders
- liquidation cascades
- institutional activity
Edge:
Early identification of expansion phases.
Open Interest Delta → Positioning Pressure
Open Interest is critical because:
- Price movement + rising OI = trend is being financed
- Price movement + falling OI = short covering / long closing → weak momentum
Very important:
Rising OI without price progress = trap potential / distribution.
This is a core signal for advanced traders.
Candle Expansion vs ATR → Volatility Regime Shift
This component measures whether the current move is statistically exceptional.
It detects:
- pre-breakout compression
- momentum ignition
- exhaustion moves
In fast crypto futures markets, precisely this transition is decisive.
VWAP Distance → Liquidation Stretch
VWAP represents short-term institutional fair value.
A large distance implies:
- traders are incorrectly leveraged
- liquidations can become triggers
- mean reversion probability increases
Combined with an LPI spike, this becomes an extremely strong timing tool.
--------------------------------------------------
3. Interpretation of the Total Index (Regime Model)
LPI 0–2 → Illiquid Chop → No edge
LPI 2–4 → Structure Phase → Range / pullback trades
LPI 4–6 → Expansion → Momentum preparation
LPI 6+ → Ignition → Breakout / liquidation phase
Important:
The greatest edge does not lie in the extreme value — but in the transition from 3 → 5.
This is typically where:
- positioning builds
- volume expands
- trend acceleration begins
--------------------------------------------------
4. Directional Histogram → Pressure Bias
Since direction is derived from VWAP relation:
- Above VWAP + rising LPI = long pressure
- Below VWAP + rising LPI = short pressure
This makes the indicator trend-sensitive without trend lag.
--------------------------------------------------
5. High-Probability Trading Applications (Systematic)
A) Breakout Engine
Best setup:
1. Multiple candles with low range (compression)
2. LPI rises progressively
3. Volume increases
4. Range breaks
This shows:
Market transitions from passive → aggressive.
B) Sweep → Reversal Engine
Setup quality increases significantly when:
- LPI spike
- price stretched far from VWAP
- wick + immediate reclaim
This creates:
- forced liquidation move
- followed by mean reversion
Highly suitable for 3m scalp modules.
C) Trend Continuation Filter
In a trend:
- pullback to VWAP / EMA
- LPI declines during pullback (healthy)
- LPI rises again on re-entry
This signals:
The trend is being financed again.
D) Trap Detection (Advanced)
Extremely valuable signal:
- price makes a higher high
- LPI makes a lower high
→ momentum divergence
→ fake breakout probability increases.
--------------------------------------------------
6. Optimal Use in a Multi-Timeframe Framework
15m → Regime + bias
5m → Setup build
3m → Entry timing
The LPI becomes especially powerful when:
- 15m shows the beginning of expansion
- 5m shows structure break
- 3m shows LPI ignition
This creates multi-timeframe pressure alignment.
--------------------------------------------------
7. Parameter Logic (Trading Engineering Perspective)
Short volume length:
- more noise
- suitable for scalping
Long volume length:
- institutional flow filter
- better for intraday bias
Short smoothing:
- timing tool
Long smoothing:
- regime filter
--------------------------------------------------
8. Typical Misinterpretations
- LPI spike = automatic entry → often already late momentum / exhaustion
- Ignoring LPI during chop → leads to overtrading
- Missing VWAP context → directional edge is lost
--------------------------------------------------
9. Strategic Value in Futures Trading
The LPI provides three core edges:
1. Early momentum detection
2. Trading liquidation phases instead of avoiding them
3. Filtering dead markets
It functions as a market activity radar for leveraged markets.
1. Conceptual Classification
The Liquidity Pressure Index (LPI) is a composite market activity indicator that quantifies four key drivers of short-term futures price movement:
- Participation (Volume)
- Positioning (Open Interest)
- Volatility (Candle Expansion vs ATR)
- Fair Value Deviation (VWAP Distance)
Therefore, the LPI does not primarily measure trend direction but rather the intensity and quality of market movement — effectively the market’s “energy state.”
Functionally, it is a regime and timing indicator.
--------------------------------------------------
2. Market Mechanics Behind the Four Components
Volume Spike Score → Participation Shock
Futures markets move sustainably only when new liquidity enters the market.
Volume spikes signal:
- aggressive market orders
- liquidation cascades
- institutional activity
Edge:
Early identification of expansion phases.
Open Interest Delta → Positioning Pressure
Open Interest is critical because:
- Price movement + rising OI = trend is being financed
- Price movement + falling OI = short covering / long closing → weak momentum
Very important:
Rising OI without price progress = trap potential / distribution.
This is a core signal for advanced traders.
Candle Expansion vs ATR → Volatility Regime Shift
This component measures whether the current move is statistically exceptional.
It detects:
- pre-breakout compression
- momentum ignition
- exhaustion moves
In fast crypto futures markets, precisely this transition is decisive.
VWAP Distance → Liquidation Stretch
VWAP represents short-term institutional fair value.
A large distance implies:
- traders are incorrectly leveraged
- liquidations can become triggers
- mean reversion probability increases
Combined with an LPI spike, this becomes an extremely strong timing tool.
--------------------------------------------------
3. Interpretation of the Total Index (Regime Model)
LPI 0–2 → Illiquid Chop → No edge
LPI 2–4 → Structure Phase → Range / pullback trades
LPI 4–6 → Expansion → Momentum preparation
LPI 6+ → Ignition → Breakout / liquidation phase
Important:
The greatest edge does not lie in the extreme value — but in the transition from 3 → 5.
This is typically where:
- positioning builds
- volume expands
- trend acceleration begins
--------------------------------------------------
4. Directional Histogram → Pressure Bias
Since direction is derived from VWAP relation:
- Above VWAP + rising LPI = long pressure
- Below VWAP + rising LPI = short pressure
This makes the indicator trend-sensitive without trend lag.
--------------------------------------------------
5. High-Probability Trading Applications (Systematic)
A) Breakout Engine
Best setup:
1. Multiple candles with low range (compression)
2. LPI rises progressively
3. Volume increases
4. Range breaks
This shows:
Market transitions from passive → aggressive.
B) Sweep → Reversal Engine
Setup quality increases significantly when:
- LPI spike
- price stretched far from VWAP
- wick + immediate reclaim
This creates:
- forced liquidation move
- followed by mean reversion
Highly suitable for 3m scalp modules.
C) Trend Continuation Filter
In a trend:
- pullback to VWAP / EMA
- LPI declines during pullback (healthy)
- LPI rises again on re-entry
This signals:
The trend is being financed again.
D) Trap Detection (Advanced)
Extremely valuable signal:
- price makes a higher high
- LPI makes a lower high
→ momentum divergence
→ fake breakout probability increases.
--------------------------------------------------
6. Optimal Use in a Multi-Timeframe Framework
15m → Regime + bias
5m → Setup build
3m → Entry timing
The LPI becomes especially powerful when:
- 15m shows the beginning of expansion
- 5m shows structure break
- 3m shows LPI ignition
This creates multi-timeframe pressure alignment.
--------------------------------------------------
7. Parameter Logic (Trading Engineering Perspective)
Short volume length:
- more noise
- suitable for scalping
Long volume length:
- institutional flow filter
- better for intraday bias
Short smoothing:
- timing tool
Long smoothing:
- regime filter
--------------------------------------------------
8. Typical Misinterpretations
- LPI spike = automatic entry → often already late momentum / exhaustion
- Ignoring LPI during chop → leads to overtrading
- Missing VWAP context → directional edge is lost
--------------------------------------------------
9. Strategic Value in Futures Trading
The LPI provides three core edges:
1. Early momentum detection
2. Trading liquidation phases instead of avoiding them
3. Filtering dead markets
It functions as a market activity radar for leveraged markets.
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.