TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Diagonal imbalance and stacked imbalance

Calculate a diagonal volume ratio using adjacent price rows.

Learning objectives

  • Calculate a diagonal volume ratio using adjacent price rows.
  • Apply a minimum-quantity rule and count consecutive qualifying levels.

Prerequisites: Read bid × ask footprint rows and know the instrument’s tick size.

Mechanism and interpretation

Under this lesson's convention, a buy diagonal ratio at price p compares ask quantity at p with bid quantity one tick below. A sell ratio compares bid at p with ask one tick above. This is different from comparing both sides on the same row. State the direction, tick increment, ratio threshold and minimum numerator and denominator before coloring cells.

A stack means consecutive qualifying prices, with no missing tick between them. Treat zero denominators explicitly rather than labeling every division by zero an infinite-strength signal. Here a ratio is eligible only when both quantities are at least 20. This is a synthetic research convention, not a universal market standard. The minimum size reduces tiny-number artifacts but also removes some observations.

Worked case · synthetic data

Tick size is 1. At prices 100,101,102,103 the bid quantities are 30,40,50,60 and ask quantities are 20,120,160,200. Buy ratios at 101,102,103 are 120/30,160/40,200/50, each 4. All exceed a 3 threshold and both quantities meet the 20-unit floor. These three consecutive prices form a stack. The ask quantity at 100 has no lower-row denominator in the supplied data.

Failure modes and context

Changing bin size changes which rows are adjacent and can manufacture or remove stacks. Low-volume ratios can be extreme without meaningful activity. A completed bar's stack cannot be used earlier than it forms unless the rule explicitly updates event by event. A stack is executed history, not a guarantee that liquidity will defend those prices later.

Practice assignment

At prices 200,201,202,203, bid quantities are 10,50,40,30 and ask quantities are 15,100,180,90. Use ratio≥3 and both quantities≥20. Which buy diagonal rows qualify, and is there a two-row stack? Handle the unavailable denominator at 200 separately.

Worked answer

At 201, 100/10=10 but the denominator fails the 20-unit floor. At 202,180/50=3.6 qualifies. At 203,90/40=2.25 fails. Only 202 qualifies, so there is no two-row stack. Row 200 is unclassified for this calculation because its lower neighbor was not supplied.

Check your understanding

Question 1

Which denominator pairs with ask quantity at 101?

  1. Bid quantity at 101
  2. Ask quantity at 102
  3. Bid quantity at 100 for tick size 1
Reveal answer and reasoning

C. Bid quantity at 100 for tick size 1

The stated buy imbalance is diagonal, comparing the immediately lower bid row.

Question 2

Does 100/10 qualify under a 20-unit floor on both values?

  1. Only if price rises later
  2. No
  3. Yes because the ratio is ten
Reveal answer and reasoning

B. No

The denominator fails the independent eligibility condition.

Question 3

What distinguishes a stack from separated imbalances?

  1. Consecutive qualifying price levels
  2. A profitable next bar
  3. Any three ratios on the chart
Reveal answer and reasoning

A. Consecutive qualifying price levels

The stack definition requires adjacency without a missing tick.

Sources and further reading

The explanations, operational rules, numerical cases and questions on this page are original TradeViora Academy educational material. Source documents support definitions or conventions; they do not establish the profitability of an illustrated rule.

Third-party rights remain with their owners. TradeViora Academy is not affiliated with these organizations. Examples are hypothetical and exclude real orders. Source review: 26 November 2026.

Continue learning

Open related learning tools · Practice library · Learning downloads