OPEN-SOURCE SCRIPT

X FP Imbalances

121
provides advanced volume profile analysis by isolating and visualizing market aggression at a granular price level. It is a powerful tool for short-term and intraday traders seeking objective confirmation of supply and demand dynamics, primarily used to identify high-probability reversal or continuation points based on order flow principles.

Key Functionality and Methodology
The indicator operates by transforming standard time-based candle data into a Volume-at-Price footprint, focusing specifically on aggressive market activity.

Granular Aggression Measurement (Delta)
The script dynamically segments the price range into discrete price levels (tickAmount). This granularity is controlled either by a user-defined fixed tick count or automatically adjusted using the Average True Range (ATR) to adapt the box size to current market volatility.

The script uses lower timeframe data (e.g., 1-minute bars) to accurately distribute the total volume into each price level, distinguishing between aggressive buying (Up Volume) and aggressive selling (Down Volume).

The core output is Delta, which is the net difference between aggressive buying and aggressive selling at each price level.

Stacked Imbalance Identification
The indicator identifies an imbalance when the volume from one side (e.g., aggressive buyers) overwhelms the total volume at that level by a user-defined percentage (imbalanceP).

A single price level where the Delta percentage exceeds the threshold is defined as an Imbalance.

The Stacked Imbalance is the primary signal, triggered when the imbalance is detected on a user-defined number of consecutive price levels (stacked) in the same direction (e.g., 3 consecutive levels of aggressive buying). This signals a high-conviction structural break or strong rejection.

Stacked imbalances are visually highlighted and can trigger real-time alerts upon bar close.

Strategic Applications
This indicator is invaluable for traders who integrate order flow concepts into their decision-making process.

One-Sided Stack (Supply/Demand Zone): Aggressive selling (Red Stack) at a high price, followed by price reversal, identifies a Structural Supply Zone (Resistance). The level is where sellers aggressively rejected demand, leaving an untested area of supply.

Overlapping Stacks (Climax Reversal): Consecutive Buy Stacks followed immediately by Sell Stacks in a tight range signals Buyer Exhaustion and an immediate Climax Reversal. The buying power was absorbed and instantly overwhelmed by waiting supply.

Absence of Stack: When price moves sharply through a level without creating any Stacked Imbalances, it suggests an Orderly Move or Liquidity Void. The absence of resistance means the market move is structurally weak and often vulnerable to a retest.

The choice between a Fixed Tick Distance (for micro-pattern precision) and ATR-based sizing (for volatility-adjusted analysis) allows the user to tailor the indicator to specific asset classes and trading styles.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.