Bid-Ask Spread Analysis
Data & signals

Bid-Ask Spread Analysis. The cost of changing your mind.

The spread is the difference between the highest price a buyer will pay and the lowest a seller will accept. Cross it and you pay it, every single time, in both directions.

For a strategy that trades often it is the most predictable cost you face, and it doubles as one of the fastest real-time readings of market stress available.

How it works

The spread is both a cost and a stress gauge

Market makers quote a spread to compensate themselves for the risk of holding inventory. When they are confident, they quote tightly and compete. When volatility spikes or news breaks, they widen or step away entirely, and the spread blows out. So a widening spread tells you liquidity providers have become unwilling to take the other side, which is usually the worst possible moment to be sending market orders.

What you can trade on it

Bid-Ask Spread Analysis in a strategy

Round-trip cost

Crossing the spread twice is your minimum cost per trade before fees. Compare it to your expected edge.

Stress detection

A sudden widening indicates market makers pulling back, often ahead of a volatile move.

Venue comparison

The same pair can carry very different spreads across exchanges, which affects where a strategy should run.

Time-of-day pattern

Spreads are tightest in liquid hours and widest overnight and at weekends.

A worked example

Refuse to trade when the spread eats the edge

A guard rail rather than a signal. It prevents a strategy from trading in conditions where it cannot possibly be profitable.

All conditions must hold
  • IFMeasure the current spread as a percentage of mid price
  • ANDCompare it to the median spread for this pair over the last 24 hours
  • ANDRequire the current spread to be below 2x that median
  • ANDRequire the round-trip cost of spread plus fees to be under one third of the strategy's average expected gain per trade
ThenAllow the trade when both hold. Otherwise wait for the spread to normalise, and skip the signal if it has not within your defined window.
Why it is built this way

The last condition is the one most strategies are missing. A scalping strategy expecting 0.2% per trade cannot survive a 0.1% round trip, and the arithmetic decides that before any analysis does. The 2x median check catches the separate problem of trading during a liquidity vacuum, when spreads gap and a market order can fill catastrophically far from where you expected.

Where the data comes from
Exchange ticker feeds

Best bid and best ask are published continuously, which is all a spread calculation needs.

Level 1 market data

Top-of-book quotes are the lightest-weight feed available and enough for spread monitoring.

Your own fills

Comparing your executed price to the mid at the time gives the effective spread you really paid, which is the number that matters.

Know the limits

The quoted spread is not always the spread you get

Top of book shows the best price for a small size. If your order is larger than what rests there, you pay progressively worse prices as you consume deeper levels, so the effective spread on your actual size can be several times the quoted one.

Templates where this matters
Keep exploring
Liquid Edge

Turn Bid-Ask Spread Analysis into a rule that fires.

Set it up in paper mode in minutes. No code, no card, no custody.

  • Round-trip cost
  • Stress detection
  • Venue comparison