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.
| Term | Plain meaning |
|---|---|
| Requested price | The price your order asked for when you sent it |
| Fill price | The price at which the order was actually executed |
| Deviation | The largest distance, in points, you allowed between them |
| Slippage | The real distance between requested and fill price; can be zero, adverse or favourable |
| Point | The smallest price step of the symbol; not always the same as a pip |
Where you meet the setting
- In the order window for manual trades, in a field labelled deviation or something similar; menu layouts differ between builds, so look at your own terminal.
- In the inputs of an Expert Advisor, where the author may call it slippage, max slippage or deviation, and may express it in points or pips.
- In one-click trading, where the value comes from a platform setting; see one-click trading explained.
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.
| Trade | Intended price | Fill price | Difference (points) |
|---|---|---|---|
| 1 (buy) | 1950.20 | 1950.22 | +2 against you |
| 2 (sell) | 1949.80 | 1949.80 | 0 |
| 3 (buy) | 1951.00 | 1950.96 | -4 in your favour |
| 4 (sell) | 1948.50 | 1948.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
- Execution rules vary by broker and instrument; no setting guarantees a fill price.
- The example prices are invented and do not describe any real symbol or broker.
- This page explains a setting and does not recommend a value or a trading approach.
Frequently asked questions
What does deviation mean in the MT5 order window?
Is deviation the same as slippage?
Does MT5 history show my slippage?
Should I set deviation to zero?
Does the journal app measure slippage?
Related guides
- A local trading journal for MT5
- P&L calendar for MT5
- Trade notes, ratings and screenshots
- Trading progress and goals
- Back up your journal and move it to a new PC
- An offline trading journal for Windows
- How to set monthly trading goals
- Import your whole MT5 history
- How to tag trades
- Trade screenshots for your journal
- All trading journal comparisons
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