
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.
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.
Bid-Ask Spread Analysis in a strategy
Crossing the spread twice is your minimum cost per trade before fees. Compare it to your expected edge.
A sudden widening indicates market makers pulling back, often ahead of a volatile move.
The same pair can carry very different spreads across exchanges, which affects where a strategy should run.
Spreads are tightest in liquid hours and widest overnight and at weekends.
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.
- 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
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.
Best bid and best ask are published continuously, which is all a spread calculation needs.
Top-of-book quotes are the lightest-weight feed available and enough for spread monitoring.
Comparing your executed price to the mid at the time gives the effective spread you really paid, which is the number that matters.
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.
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

