Imbalance Matrix [JOAT]

Imbalance Matrix is an open-source map of every ICT imbalance type on one chart: fair value gaps on both sides (BISI and SIBI), inversion gaps (iFVG), balanced price ranges (BPR), volume imbalances (VI) and the displacement candles that create gaps, framed by major structure (BOS / CHoCH) and a premium / discount gradient over the current leg. Every zone carries its own data on a filled tag at its right end, such as "BISI 74% open · 1.2 ATR" or "BPR · 0.6 ATR", so the chart reads without opening a single setting.
A confluence dashboard sums up the state of the map: the bias, open gaps per side with the nearest edge, whether a BPR is live, the last inversion, the open VIs, which imbalance price is sitting in, how often this chart's gaps get filled within 50 bars, and a 0-100 Imbalance Score. Nothing here is a trade call: the indicator draws no arrows and no price objectives. It maps imbalances and describes what price has done.
Core Concepts
1. Fair value gaps (BISI / SIBI)
On every closed bar the last three candles are checked. A bull gap (BISI) forms when this candle's low is above the high two candles back and the middle candle closed above that high; the gap runs from that high up to this low. A bear gap (SIBI) is the mirror image. A gap must be at least a minimum size in ATR(14):
Pine Script®
Each gap is a zone box with a dotted CE line (consequent encroachment, the 50 % level of the full gap). When a wick reaches into a gap, the box shrinks from the edge that was touched, and its tag reports the share still open. When a wick reaches the far side, the gap is filled and leaves the map (or stays as a faint box if you turn that on).
2. Inversion gaps (iFVG)
A filled gap that a candle then closes through (a close under a bull gap's bottom, or over a bear gap's top) within the flip window becomes an inversion gap of the other side. It is drawn as a gradient band built from nested layers, strongest at its outer edge, with a dashed outline, and it ends on a close back through its far side.
3. Balanced price ranges (BPR)
Each time a gap forms, the opposite gaps born within the pair window are checked for a price overlap. The largest overlap becomes a BPR in the new gap's colour: a brighter box with a double border, tagged in the palette's highlight colour. A BPR ends on a close through its far side.
4. Volume imbalances (VI)
Two candles of the same direction whose bodies do not touch (this candle's open above the prior close for a bull VI, below it for a bear VI) while their wicks still overlap. The zone is the thin space between the two bodies. It shrinks with wicks like a gap and leaves the map once a wick reaches its far side. A VI that sits entirely inside an open gap of the same side is skipped because it adds nothing to the map.
5. Displacement candles
When the middle candle of a new gap has a body of at least 1.2 ATR(14) in the gap's direction, it gets a small filled "D" under it (bull) or over it (bear). Only the newest 6 keep their tag.
6. Structure and premium / discount
A swing high or low is confirmed once price moves a set number of ATR away from it. A close above the last swing high is a bull break and a close below the last swing low a bear break: CHoCH when it turns the bias, BOS when it continues it. Each break is a solid line from the swing to the break with a filled tag. The bias paints the candles. The dealing range of the current leg runs from the swing that started it to its extreme so far; above its 50 % equilibrium the bear colour fills the premium half, below it the bull colour fills the discount half, both strongest toward the edges.
7. The Imbalance Score (0-100)
The score measures how much imbalance sits close to price on the side of the bias. It has three parts:
Pine Script®
With no bias yet (before the first break) the score is 0. The dashboard tooltip on the score row shows each part. The score is a description of the map right now, not a forecast.
8. Fill rate
Every gap on the chart (drawn or not) is followed for a set window, 50 bars by default. It counts as filled if a wick reaches its far side within that window and as unfilled once it reaches the window's end without that. The dashboard shows the filled share with n, the number of gaps already decided, so the sample size is always in view.
Features
Input Parameters
General:
Fair value gaps:
Inversion gaps, BPRs, VIs:
Displacement, structure, premium / discount:
Dashboard and colours:
How to Use This Indicator
Give it room on the right
Zones end 8 bars right of the last bar and their tags start there. A right margin of about 40 bars keeps every tag on screen.
Read the zones
A tag like "BISI 74% open · 1.2 ATR" says a quarter of that bull gap has already been worked into by wicks and that it was 1.2 ATR tall when it formed. BPRs stand out with their double border and highlight tag; iFVGs are the gradient bands with a dashed outline; VIs are the thin boxes. Hover any tag for the full range, CE and age.
Read the dashboard
Bias tells you which side the structure favours and how long ago the last break printed. The open-gap rows show how many gaps each side still has and the nearest edge. Price inside names the imbalance price is trading in right now. Fill rate tells you how this symbol and timeframe have treated gaps in the loaded history.
Keep it clean
On busy timeframes lower the number drawn per type or the Draw within distance. Turn off the types you do not use; gaps are still tracked in the background so BPRs, iFVGs and the fill rate keep working.
Indicator Limitations
Originality Statement
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. The zones, counts, fill rate and score shown by this indicator describe past price behaviour on the loaded chart and are not predictions of future price behaviour. The author accepts no responsibility for trading losses resulting from use of this indicator.
Made with passion by jackofalltrades
A confluence dashboard sums up the state of the map: the bias, open gaps per side with the nearest edge, whether a BPR is live, the last inversion, the open VIs, which imbalance price is sitting in, how often this chart's gaps get filled within 50 bars, and a 0-100 Imbalance Score. Nothing here is a trade call: the indicator draws no arrows and no price objectives. It maps imbalances and describes what price has done.
Core Concepts
1. Fair value gaps (BISI / SIBI)
On every closed bar the last three candles are checked. A bull gap (BISI) forms when this candle's low is above the high two candles back and the middle candle closed above that high; the gap runs from that high up to this low. A bear gap (SIBI) is the mirror image. A gap must be at least a minimum size in ATR(14):
Each gap is a zone box with a dotted CE line (consequent encroachment, the 50 % level of the full gap). When a wick reaches into a gap, the box shrinks from the edge that was touched, and its tag reports the share still open. When a wick reaches the far side, the gap is filled and leaves the map (or stays as a faint box if you turn that on).
2. Inversion gaps (iFVG)
A filled gap that a candle then closes through (a close under a bull gap's bottom, or over a bear gap's top) within the flip window becomes an inversion gap of the other side. It is drawn as a gradient band built from nested layers, strongest at its outer edge, with a dashed outline, and it ends on a close back through its far side.
3. Balanced price ranges (BPR)
Each time a gap forms, the opposite gaps born within the pair window are checked for a price overlap. The largest overlap becomes a BPR in the new gap's colour: a brighter box with a double border, tagged in the palette's highlight colour. A BPR ends on a close through its far side.
4. Volume imbalances (VI)
Two candles of the same direction whose bodies do not touch (this candle's open above the prior close for a bull VI, below it for a bear VI) while their wicks still overlap. The zone is the thin space between the two bodies. It shrinks with wicks like a gap and leaves the map once a wick reaches its far side. A VI that sits entirely inside an open gap of the same side is skipped because it adds nothing to the map.
5. Displacement candles
When the middle candle of a new gap has a body of at least 1.2 ATR(14) in the gap's direction, it gets a small filled "D" under it (bull) or over it (bear). Only the newest 6 keep their tag.
6. Structure and premium / discount
A swing high or low is confirmed once price moves a set number of ATR away from it. A close above the last swing high is a bull break and a close below the last swing low a bear break: CHoCH when it turns the bias, BOS when it continues it. Each break is a solid line from the swing to the break with a filled tag. The bias paints the candles. The dealing range of the current leg runs from the swing that started it to its extreme so far; above its 50 % equilibrium the bear colour fills the premium half, below it the bull colour fills the discount half, both strongest toward the edges.
7. The Imbalance Score (0-100)
The score measures how much imbalance sits close to price on the side of the bias. It has three parts:
With no bias yet (before the first break) the score is 0. The dashboard tooltip on the score row shows each part. The score is a description of the map right now, not a forecast.
8. Fill rate
Every gap on the chart (drawn or not) is followed for a set window, 50 bars by default. It counts as filled if a wick reaches its far side within that window and as unfilled once it reaches the window's end without that. The dashboard shows the filled share with n, the number of gaps already decided, so the sample size is always in view.
Features
- All imbalance types on one map: BISI, SIBI, iFVG, BPR, VI and displacement candles, each with its own look
- Data on every zone: Filled tags at each zone's right end with the share still open and the size in ATR; hover any tag for its range, CE, size and age
- Live partial fills: Boxes shrink from the touched edge as wicks work into them, and the tag's percentage follows
- CE lines: Dotted 50 % lines through the gaps, removed once wicks fill past them
- Gradient inversion bands: Nested layers with no seams between bands, dashed outline
- Double-bordered BPRs: Brighter boxes with an inner and an outer border and a highlight-colour tag
- Structure and bias: Major BOS / CHoCH lines and tags, candles painted by the bias (on by default)
- Premium / discount gradient: Over the dealing range of the current leg, with Premium, EQ and Discount tags carrying their prices
- Clean by design: 4 gaps per side, 3 iFVGs, 2 BPRs and 4 VIs drawn by default, always the nearest to price and only within 8 ATR of the close; filled zones are removed; Live mode keeps the newest 6 structure breaks
- Tags that never overlap: Right-edge tags share one lane register and stack with a gap of 0.045 of the displayed price range, as close to their own zones as the gap allows
- Clear dashboard corner: With the dashboard at the top or bottom, the price scale keeps empty room there and no tag is placed under it
- Confluence dashboard: Nine rows with tooltips, the last one the highlighted Imbalance Score; position, size and transparency inputs for desktop and mobile
- Ten themes: Aqua Ember (default), Mystic, Emerald Ruby, Ice Magenta, Royal Gold, Ocean Amber, Sakura Teal, Aurora, Mono and Custom, with every colour exposed; plain text switches to deeper shades on light charts
- Alerts: New BISI, new SIBI, new BPR, new iFVG, displacement candle and structure break
- Free-account ready: Works on 5,000 bars, makes no request calls, starts no drawing more than 4,990 bars back
Input Parameters
General:
- Theme: the colour palette (default Aqua Ember)
- Display mode: Live keeps the newest 6 structure breaks, All History up to 100
- Paint candles by bias (default on)
- Draw within (ATR): zones further from the close are not drawn but still counted (default 8)
- Zone right end (bars): how far right of the last bar zones end and tags start (default 8)
- Tag size: Small, Normal or Large
Fair value gaps:
- Show BISI / SIBI, gaps drawn per side (default 4), minimum gap size in ATR (default 0.3)
- CE line on / off, keep filled gaps faded (default off)
- Fill-rate window in bars (default 50)
Inversion gaps, BPRs, VIs:
- iFVGs: show, number drawn (default 3), flip window (default 30 bars after the fill), gradient steps
- BPRs: show, number drawn (default 2), pair window (default 20 bars), minimum overlap in ATR (default 0.1)
- VIs: show, number drawn (default 4), minimum size in ATR (default 0.03, at least one tick)
Displacement, structure, premium / discount:
- D tags: show, minimum body in ATR (default 1.2), number kept (default 6)
- Structure: show BOS / CHoCH, swing size in ATR (default 1.8)
- Premium / discount: show, gradient steps (default 6)
Dashboard and colours:
- Show, position (default Top Right), size (default Small), background transparency
- Keep the dashboard corner clear: empty room on the price scale on the dashboard's side, as a share of the drawn range (default 0.30, 0 = off)
- Custom bull, bear, dashboard background, frame and highlight colours (used when Theme = Custom)
How to Use This Indicator
Give it room on the right
Zones end 8 bars right of the last bar and their tags start there. A right margin of about 40 bars keeps every tag on screen.
Read the zones
A tag like "BISI 74% open · 1.2 ATR" says a quarter of that bull gap has already been worked into by wicks and that it was 1.2 ATR tall when it formed. BPRs stand out with their double border and highlight tag; iFVGs are the gradient bands with a dashed outline; VIs are the thin boxes. Hover any tag for the full range, CE and age.
Read the dashboard
Bias tells you which side the structure favours and how long ago the last break printed. The open-gap rows show how many gaps each side still has and the nearest edge. Price inside names the imbalance price is trading in right now. Fill rate tells you how this symbol and timeframe have treated gaps in the loaded history.
Keep it clean
On busy timeframes lower the number drawn per type or the Draw within distance. Turn off the types you do not use; gaps are still tracked in the background so BPRs, iFVGs and the fill rate keep working.
Indicator Limitations
- Gaps, VIs, inversions, BPRs, displacement candles and structure breaks are decided on closed bars only, so they appear when the bar closes; wick fills update on the live bar
- Only the nearest zones to price are drawn; others are tracked (up to 30 open gaps per side and 30 VIs) and counted in the dashboard
- The fill rate and every count come from the loaded history only; on a free account that is about 5,000 bars
- ATR is ATR(14) on the chart timeframe, so size settings mean different things on different timeframes
- Volume imbalances need a body gap of at least one tick, so they are rare on markets that trade around the clock, where each candle opens at the prior close
- The swing filter confirms a swing only after price has moved away from it, so structure breaks lag the swing by design
- Continuous futures charts can show artificial jumps at contract rolls, which can create gaps that never existed in a single contract
Originality Statement
- Six ICT imbalance types (BISI, SIBI, iFVG, BPR, VI and displacement) tracked by one engine and drawn on one map, each with its own visual language and its own data tag
- Gaps that shrink from the touched edge as wicks fill them, with the open share on the tag, instead of boxes that stay full until they disappear
- A balanced price range search that pairs each new gap with every opposite gap of the recent past, filled or not, and keeps the largest overlap
- One lane register for every right-edge tag, sized from the displayed price range and kept clear of the dashboard corner, so tags never overlap
- An Imbalance Score built from three plain parts (proximity, BPR, displacement) with each part shown in its tooltip
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. The zones, counts, fill rate and score shown by this indicator describe past price behaviour on the loaded chart and are not predictions of future price behaviour. The author accepts no responsibility for trading losses resulting from use of this indicator.
Made with passion by jackofalltrades
Trading Indicators, Strategies, Tools, & Signals !! 🃏
Get Access and See Full Results👇
jackofalltrades.vip 🌐
Get Access and See Full Results👇
jackofalltrades.vip 🌐
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.
Trading Indicators, Strategies, Tools, & Signals !! 🃏
Get Access and See Full Results👇
jackofalltrades.vip 🌐
Get Access and See Full Results👇
jackofalltrades.vip 🌐
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.