Skip to content
realtrademaster

How to Measure Slippage From MT5 Fills

Slippage measures the difference between the price you expected to trade at and the price your order actually received. It takes two records to calculate: a reference you can justify and the execution for that same order. This walkthrough uses the executable quote observed when a request was sent. It shows how to handle multiple deals, express the result in ticks, and describe what the measurement leaves out.

Steps to check

  1. Choose one reference before reviewing results. For a market buy, use the ask observed when the request was sent. For a market sell, use the bid. Keep the exact symbol, side, quote timestamp, request timestamp, and time zone. If all you have is a chart candle or midpoint, mark the executable reference missing.
  2. Pair the request with executed deals for that order. Compare order identifiers, deal times, symbols, sides and volumes. An accepted request may fill later, fill in parts, or never fill. Keep unfilled volume separate. Avoid pulling another order into the calculation just because its deal was recorded near the same time.
  3. Calculate the volume-weighted fill price by multiplying each fill price by its volume, adding those products, and dividing by total filled volume. For a buy, subtract the reference from the fill. For a sell, subtract the fill from the reference. With this convention, a positive result is adverse for either side.
  4. Divide the signed price difference by the symbol's tick size. Record the quote currency and whether you are comparing entry or exit deals. Report spread and commission separately. When the reference already uses the bid or ask, the fill-to-reference difference does not need a second spread adjustment.
  5. For a batch, report the number of orders with usable quotes, the missing records and the period covered. Show the median and a tail measure or the worst few observations when the sample is small. Compare like order types and sessions before interpreting a difference.

Worked example

Hypothetical buy: the observed ask is 1.10020. The broker fills 0.30 lots at 1.10024 and 0.20 lots at 1.10029. The weighted price is 1.10026 for 0.50 lots filled. That is 0.00006 above the reference, or six adverse ticks if tick size is 0.00001. Any fee belongs in the separate cost record.

Frequently asked questions

Can I use the price I see on a candle?

A candle can be useful context, but it does not establish the executable quote for your order side and timestamp. Keep those observations separate.

How do I handle a delayed or missing quote?

Record the quote age and apply the same cutoff to all orders in the sample. Leave slippage unmeasured when the reference is missing or too old.

What if a sell fills above the reference?

With the stated sign convention, a higher sell fill gives a negative number. That means the price was favorable relative to the recorded reference.

Related guides

Related video

Related walkthrough: trading costs in backtests

Watch on YouTube

Sources