Order Book Microprice Explained: Weighted Mid, Queue Imbalance and False Signals
Order-book microprice is a short-horizon reference price that accounts for how much displayed buying and selling interest sits at the best bid and ask. The simplest approximation, more precisely called the size-weighted midpoint, moves the ordinary midpoint towards the side with less displayed quantity. If 800 shares are bid and only 200 are offered, the weighted midpoint sits closer to the ask. It does not mean the price has an 80% chance of rising, that the next trade will execute at the weighted price, or that a profitable trade is available.
For an active equity or futures trader, this helps answer: What does a heavily unbalanced order book imply about short-term quote pressure, and how can I distinguish a useful signal from disappearing liquidity? This guide gives the exact arithmetic, a browser-based calculator, cancellation stress tests, and a practical way to validate the idea with real market data rather than treating a static order-book snapshot as a trading signal.

What are midpoint, queue imbalance and weighted midpoint?
At a given instant, the best bid is the highest displayed buy price and the best ask is the lowest displayed sell price in the chosen order book. Their difference is the quoted spread. The midpoint is halfway between them. The displayed quantities at those prices are the bid queue and ask queue. These quantities can change through new orders, executions and cancellations.
Let B and A denote best bid and best ask prices; Qb and Qa denote positive displayed quantities at those prices. Three calculations are useful:
- Midpoint: (B + A) / 2.
- Bid share: Qb / (Qb + Qa).
- Signed top-of-book imbalance: (Qb − Qa) / (Qb + Qa), from −1 to +1.
- Size-weighted midpoint: (A × Qb + B × Qa) / (Qb + Qa).
Equivalently, weighted midpoint = midpoint + (spread / 2) × signed imbalance. A large bid queue pulls the weighted price towards the ask because the smaller ask queue may be exhausted sooner, if other queue dynamics are comparable. The formula is also demonstrated in Databento’s market-data documentation. Some practitioners call this simple weighted value “microprice”; the more rigorous research concept can be a data-fitted estimate of the future midpoint conditional on book state. Do not confuse the two or present the weighted formula as a statistically calibrated forecast.
Worked example: 800 shares bid against 200 offered
Consider a hypothetical single-venue stock order book. Best bid is $50.00 for 800 displayed shares; best ask is $50.02 for 200 displayed shares. The spread is $0.02, the ordinary midpoint is $50.010, and bid share is 800 / 1,000 = 80%. Signed imbalance is (800 − 200) / 1,000 = +0.60.
The weighted midpoint is ($50.02 × 800 + $50.00 × 200) / 1,000 = $50.016. That is $0.006 above the midpoint, or 0.3 of the two-cent spread above the midpoint. It remains inside the bid and ask; it is a derived reference, not an executable limit-order fill price or an assertion of the next trade’s direction.
| Hypothetical book | Bid size | Ask size | Signed imbalance | Weighted midpoint |
|---|---|---|---|---|
| Balanced | 500 | 500 | 0.00 | $50.010 |
| Bid-heavy | 800 | 200 | +0.60 | $50.016 |
| Ask-heavy | 200 | 800 | −0.60 | $50.004 |
| Bid cancellations | 300 | 200 | +0.20 | $50.012 |
The last row is especially important: 500 displayed bid shares cancel, and the weighted reference drops from $50.016 to $50.012 without either quoted price moving. A screen displaying only the latest size-weighted number might make this look like selling pressure, even though it came from cancellation rather than an executed sell. For the distinction between quote updates and transactions, see order-flow imbalance versus cumulative volume delta.
Interactive order-book weighted-midpoint calculator
Enter a valid bid, ask and displayed quantity on each side. The calculation updates locally in your browser; it does not retrieve live market data or predict a price movement. A two-cent spread in a stock is just an illustration: the appropriate tick size depends on the instrument and venue.
80.0% of displayed top-of-book size is at the bid; the weighted reference is nearer the ask.
Educational weighted-midpoint approximation. A positive offset is not a calibrated probability or a trading recommendation. Real queues change, can contain hidden size and may differ across venues.
What happens if the queue changes before your order arrives?
Top-of-book quantities are not fixed inventories. Consider three hypothetical events from the 800-bid/200-ask starting book:
- 500 bid shares are cancelled: bid size becomes 300; the weighted midpoint falls to $50.012 even with no trade and unchanged best prices.
- 600 new ask shares arrive: sizes become 800/800 and the weighted midpoint returns to $50.010. A strong positive imbalance has disappeared without the bid quote changing.
- A 200-share market buy consumes the entire displayed ask: the best ask may move to the next eligible price level. You cannot calculate the next weighted midpoint without the replacement ask price and its quantity. Do not assume a one-tick rise or an unchanged spread.
This is why the apparent imbalance at the moment you click Buy is not necessarily the imbalance when your order reaches the matching engine. Queue priority, cancellations, venue fragmentation and hidden/reserve orders all matter. See limit-order queue priority and iceberg orders and hidden liquidity.
Top-of-book imbalance versus five-level depth
The weighted midpoint above uses only the best bid and ask queues. A different indicator, depth imbalance, may sum displayed quantities across the first five or ten levels. For N levels, the signed imbalance is (sum of N bid quantities minus sum of N ask quantities) divided by their combined sum. Databento’s documented market-data example demonstrates both top-of-book microprice and multi-level imbalance. They answer different questions: one estimates pressure at the touch, while the other describes displayed depth over a selected range.
Do not call an unweighted sum of five price levels “microprice”; it is a depth statistic unless an explicit pricing model is applied. Likewise, comparing 5 levels of a narrow-spread stock with 5 levels of a wide-spread contract can compare different economic distances. A fixed basis-point or tick-distance window may be more meaningful for cross-instrument research.
US equities trade across multiple venues. Nasdaq TotalView describes the displayed orders available through its Nasdaq market-depth product, not a guarantee that every US equity venue, dark pool, hidden order or broker internalisation system is visible in one order book. A single-venue imbalance should not be labelled a consolidated market-wide forecast.
Does a bid-heavy book mean the next price move will be up?
No—not without empirical testing and a defined prediction horizon. The 80% bid share in our example is a fraction of displayed quantity, not an 80% probability of an uptick. A queue may be cancelled before execution; hidden selling can replenish the ask; and aggressive sell flow can hit the large bid repeatedly. The simple size-weighted midpoint is a descriptive feature. A predictive microprice model needs calibration against actual subsequent price changes and may need spread state, instrument, venue and market regime.
For example, suppose the weighted midpoint rises from 50.010 to 50.016 because 600 bid shares were added. A trader cannot infer that the next execution will be 50.02 or that buying at the 50.02 ask has positive expected value. To cross the spread immediately, the buyer pays the ask. Even if the midpoint subsequently rises slightly, spread, commissions, fees, latency and adverse selection may overwhelm the change. For related costs, see marketable limit versus market orders.
How to backtest the signal without look-ahead bias
- Define the instrument and data: record timestamped bid, ask, top-of-book quantities, venue and session; distinguish exchange timestamps from delayed broker updates.
- Choose the target: for example, the direction of the next midpoint change or the midpoint after a fixed number of milliseconds, excluding or separately treating unchanged prices. These are not interchangeable labels.
- Build features only from available information: compute imbalance and weighted midpoint using the book state known at the decision timestamp. Never use future queue changes to form the signal.
- Split chronologically: calibrate on earlier sessions, test on later unseen sessions, and account for market regime and instrument changes.
- Compare a baseline: test whether the weighted midpoint adds information beyond the ordinary midpoint, spread and recent trade direction. A visual correlation alone is not evidence of predictive value.
- Model execution: apply spread crossing, realistic fees, latency, fill probability, partial fills and queue position. Prediction accuracy is not net trading profitability.
- Stress-test: compare high- and low-volatility sessions, opening and closing auctions, news releases, one-tick and multi-tick spreads, and periods of heavy order cancellation.
For additional context, Level 2 order books explains depth, while spoofing versus genuine liquidity explains why a large displayed wall is not automatically durable support.
Frequent mistakes and practical safeguards
| Mistake | Why it fails | Better practice |
|---|---|---|
| Treating 80% bid share as an 80% uptick probability | Queue share is not a calibrated likelihood | Measure outcomes by instrument and horizon |
| Assuming the weighted midpoint is executable | Trades normally execute at eligible bid/ask or other order prices | Model fill and spread costs separately |
| Using a single screenshot | Displayed size can vanish or replenish rapidly | Study timestamped order-book events |
| Assuming one venue equals the whole market | Other venues and hidden liquidity may be excluded | Document feed coverage and limitations |
| Calling every weighted-mid calculation a predictive microprice | A fitted conditional expectation requires validation | Label the simple formula as a weighted-mid approximation |
Frequently asked questions
Why is the weighted midpoint closer to the ask when there are more buyers?
The formula weights the ask price by displayed bid quantity. A larger bid queue and thinner ask queue pull the reference towards the ask, but this is a queue-based heuristic, not a promise of upward price movement.
Can microprice be outside the bid–ask spread?
The simple positive-size weighted midpoint cannot: it is a convex combination of bid and ask. A different, fitted predictive model may estimate future midpoints beyond the current spread, depending on its definition. Always identify which measure is being displayed.
Does it work for forex or cryptocurrency?
The arithmetic works for a two-sided electronic order book with displayed size. However, spot FX is fragmented and often dealer-driven, while crypto exchange order books vary by venue. Never treat a single broker’s quote size as complete global liquidity.
What if the bid equals or exceeds the ask?
This calculator requires a normal positive spread (ask above bid). Locked or crossed quotes can occur in market-data feeds or multi-venue views, but require separate handling and should not be silently fed into a normal-spread model.
Is microprice a trading signal by itself?
No. It is a market microstructure feature. Whether it adds predictive or economic value depends on empirical testing, order-book stability, execution conditions and costs.
The practical takeaway for traders
Calculate the ordinary midpoint, bid share and size-weighted midpoint together; then ask whether the imbalance is stable, executable and genuinely predictive after costs. The formula can describe how top-of-book liquidity is distributed, but it cannot establish the next price, the probability of a move or a profitable trading opportunity. A sound trading process validates these distinctions with correctly timestamped data and realistic execution assumptions.
Educational material only. All prices and quantities are hypothetical. No live data feed or investment recommendation is provided.
Stay Ahead of the Markets
Get market analysis, financial news and practical trading insights delivered straight to your inbox.