Appearance
Personalize your experience
Bid-Ask Spread, Impact Cost & Implementation Shortfall
Market FoundationsQuantifying the execution tax of bid-ask spreads, depth impact cost, and latency slippage in active trading.
Core Architecture & Intuition
Every backtest looks profitable when fills are assumed at the exact close of a candle. In live execution, you buy at the Ask, sell at the Bid, and push the price against yourself whenever your order size exceeds the top rung.
Impact Cost measures the percentage degradation of your actual fill VWAP from the ideal mid-price `(BestBid + BestAsk) / 2` for a standardized order size.
Hover over key terms below for instant definitions: Ideal Mid-Price, Impact Cost (%), and Implementation Shortfall. For the complete mathematical derivation and edge-case analysis, open .
Interactive Concept Breakdown
- Ideal Mid-Price — The frictionless fair-value benchmark at the instant an order is triggered.
- Impact Cost (%) — Measures true order book resilience far better than daily volume alone.
- Implementation Shortfall — Combines spread cost, depth impact, and latency drift into one audit number.
Step-by-Step Execution Protocol: Liquidity & Spread
- 1Capture Arrival Mid-PriceRecord Best Bid and Best Ask at the exact millisecond your signal triggers.
- 2Compute Fill VWAP Across Partial FillsWeight each child fill by quantity to compute the true execution price.
- 3Benchmark Shortfall in Basis PointsFlag any instrument whose average shortfall exceeds 15% of average trade profit.
Parameters, Rules & Reference Matrix
| Parameter / Rule | Type | Default | Description |
|---|---|---|---|
| idealMid | price | — | (Bid0 + Ask0) / 2. |
| impactCostBps | bps | — | ((FillVWAP - IdealMid) / IdealMid) * 10000. |
| maxOrderToTopDepth | ratio | <= 0.25 | Keep single child orders below 25% of top-rung quantity. |
Implementation & Quantitative Model
export function buyImpactCostBps(bid0: number, ask0: number, fillVwap: number): number { const mid = (bid0 + ask0) / 2; return ((fillVwap - mid) / mid) * 10_000;}Desk Verification Checklist
Confirm before deploying live capital
- Log arrival mid-price on every live order to track real slippage.
- Reject option strikes where (Ask - Bid) / Bid > 1.5%.
- Slice orders exceeding 25% of L1 depth into smaller child limits.
Cross-reference standard risk definitions such as drawdown, slippage, and when auditing your logs.
More in Liquidity & Spread
- Institutional Liquidity Pools, Stop Cascades & Absorption
Why large desks engineer sweeps of equal highs and lows to tap into clusters of retail stop-loss orders.