Imbalance
Version: v.1.0.0.0

Description
The Imbalance Indicator is a tool for analyzing market liquidity, helping traders identify uneven distribution of supply and demand in the order book (Level II) or time & sales data.
Notes
For the correct calculation of historical imbalance, it is necessary to load tick data into the platform, as well as ask price and bid price data. Without this data, the indicator may not function properly on historical bars.
This indicator works only on Volumetric bars, meaning that the user must have an active NinjaTrader Order Flow + subscription to use it.
Properties
- Imbalance mode [default: Diagonal] — Specifies the method used to detect volume imbalances in order flow analysis.
- Imbalance count per bar [default: 2, range: 1–∞] — Defines the minimum number of imbalances required within a single bar for it to be considered significant.
- Imbalance ratio [default: 1.5, range: 0–∞] — Sets the minimum volume ratio between bid and ask for an imbalance to be recognized. A common value is 1.5 or higher.
- Minimum delta for imbalance [default: 10, range: 0–∞] — Specifies the minimum delta (difference between aggressive buying and selling) needed to confirm an imbalance.
- Imbalance offset (bars) [default: 0, range: 0–∞] — Defines how many historical bars back the imbalance signal is calculated. 0 = current bar, 1 = previous bar, 2 = two bars ago, etc.
- Use bid imbalance [default: true] — Enables detection of bid-side imbalance, identifying aggressive selling pressure.
- Use ask imbalance [default: true] — Enables detection of ask-side imbalance, identifying aggressive buying pressure.
- Only dominant side [default: false] — If enabled, signals will be generated only when one side (bid or ask) shows a significantly stronger imbalance.