The MT5 deviation setting: what it allows and how to measure your own slippage

A short field in the order window decides how far the price may move before you are filled. Here is what it means.

The order window in MetaTrader 5 has a setting called deviation, and Expert Advisors have an equivalent input, often called slippage or max deviation. Many traders leave it alone without knowing what it does. It controls how far the price may move between the moment you press the button and the moment the broker fills the order, and therefore it is one of the settings that decides whether you get a trade at a worse price or no trade at all. This page explains the idea in plain terms, where the setting usually lives, and how to compare what you asked for with what you got.

What deviation means

When you send a market order you ask for a price, normally the one on screen. By the time the order reaches the broker the price may have changed. Deviation is the maximum difference, measured in points, that you are willing to accept. If the price on the server is within that distance of your requested price the order is filled there. If it is outside, the broker may reject it, requote it, or fill it anyway, depending on the execution mode of the symbol and the broker's rules. Because execution modes differ, read the symbol specification in your terminal and your broker's execution policy instead of assuming one behaviour.

TermPlain meaning
Requested priceThe price your order asked for when you sent it
Fill priceThe price at which the order was actually executed
DeviationThe largest distance, in points, you allowed between them
SlippageThe real distance between requested and fill price; can be zero, adverse or favourable
PointThe smallest price step of the symbol; not always the same as a pip

Where you meet the setting

Why a tiny value can cost you trades and a large one can cost you money

There is no free option here. A very small deviation protects your price but increases the chance that the order is refused in a fast market, which a trader may experience as missed entries. A large deviation almost always fills but can fill at a poor price when the market jumps. The right value depends on the symbol, the typical spread, the time of day and the broker. Rather than quoting numbers that would only be true for someone else's account, measure your own.

Measuring your own slippage

MetaTrader 5 history stores the executed price of each deal but not the price you saw when you clicked. So the comparison needs a second source, which is you. Keep a habit for a few weeks: when you enter a trade, write the intended entry price in a note, or take a screenshot of the order ticket. Afterwards, compare it with the open price in the History tab and put the difference in a spreadsheet, in points. Remember that a buy fills at the ask and a sell at the bid, so compare like with like.

TradeIntended priceFill priceDifference (points)
1 (buy)1950.201950.22+2 against you
2 (sell)1949.801949.800
3 (buy)1951.001950.96-4 in your favour
4 (sell)1948.501948.31+19 against you

The prices above are made up and the symbol is not named on purpose. Notice that trade 4 is far larger than the others; a single outlier like that usually coincides with a news release or a thin market, and noting the context in the journal is more useful than the number itself. Over many trades the average and the worst case tell you whether your deviation setting suits your style. See spread and slippage in trade history for the cost side and trading costs in history for putting it beside commission and swap.

What a journal can and cannot capture

AI Trading Journal is a Windows app for MetaTrader 5 only. It reads closed trades from the terminal on your PC, adds new ones every 5 minutes, and keeps the journal in a file in your Documents folder. It does not record slippage or intended prices, because MetaTrader 5 does not store them; what it keeps is the open and close price and the result of each closed position. If you type your intended price into the notes field of an entry, you can search for it later, and the Excel export carries the executed prices for your spreadsheet. The app is read-only: it never places, modifies or closes a trade, and it gives no trading advice. The 7-day trial needs no card, and the full version is $19.99 once, with no subscription.

Limits

Frequently asked questions

What does deviation mean in the MT5 order window?
It is the maximum difference in points between your requested price and the fill price that you accept.
Is deviation the same as slippage?
Deviation is the limit you set; slippage is the difference that actually occurred.
Does MT5 history show my slippage?
No. It shows the executed price but not the price you saw when you sent the order, so you need your own note.
Should I set deviation to zero?
That depends on the broker's execution mode and your tolerance for rejected orders. Test on a demo account first.
Does the journal app measure slippage?
No. It does not record intended prices; you can add them in the notes field.

Related guides

Note intended prices beside every trade: free for 7 days

Free for 7 days, no card required. After that, a one-time $19.99 purchase. No subscription. Also on the Microsoft Store.

One-time $19.99, no monthly fee · your MT5 login never leaves your PC · trades go into your own journal on your PC, not through our servers.

Start free 7-day trial