MT5 order expiration and time in force explained

How long a pending order may live, which clock decides it, how an expired order looks in the history and what to write down when it never fills.

A pending order that never fills is not a mistake, but one that fills three days later, when you have forgotten why you placed it, often is. MetaTrader 5 lets you decide how long a pending order may live. That setting is called the expiration, and the rule behind it is the order’s time in force. This page explains the choices you normally see, how they appear in the history, and how to keep your notes honest when an order disappears without trading.

What expiration and time in force mean

When you place a limit or stop order, the terminal asks how long the server should keep it. Typical choices are: until you cancel it, until the end of the current trading day, or until a date and time you pick. Some brokers offer only some of these, and the wording on the order window can differ between builds. Check your own terminal rather than trusting any list, including this one.

Type (typical wording)What it usually meansJournal angle
Good till cancelledThe order stays until it fills or you remove itNeeds a review date, or it becomes a forgotten trade
Good till dayThe order is cancelled at the end of the trading dayFits a plan tied to one session
SpecifiedThe order is cancelled at the date and time you setFits an event, such as a release you do not want to trade after
Specified dayThe order is cancelled at the end of the day you setFits a multi-day setup with a clear deadline

All of these times are read against the broker’s server clock, not your computer’s. If you are unsure how far apart the two are, read MT5 server time explained before you set an expiry for a specific hour.

How an expired order looks in the history

An order that expires without trading leaves no deal, because nothing was bought or sold. It appears among the orders in the account history with a state such as expired or cancelled, depending on the platform wording. This is why a list of closed positions never shows it. A journal that records one entry per closed position will not contain it either, and that is correct: no position existed.

The orders view and the deals view answer different questions. Orders tell you what you asked the server to do; deals tell you what actually happened. The relationship is covered in deal, order and position IDs explained, and the broader picture of pending orders in the records is in pending orders in the trade history.

Why expiry belongs in your trading plan

A pending order is a decision made in advance. The conditions that justified it, such as a level holding, a quiet session or an upcoming release, have a shelf life. An order left open past that point is a decision nobody is making any more. Setting an expiry forces you to state how long the idea is valid.

What to write down for each pending order

Pending orders that fill become ordinary positions, and those do reach your journal once they close. Pending orders that expire or get cancelled do not, so the lesson from them lives only in what you write yourself. A short note is enough: the level, the reason, the expiry chosen, and what happened. After a few weeks you can count how many ideas expired untouched and whether the ones that filled late did better or worse than the plan expected.

With AI Trading Journal, a filled order becomes an entry when the position closes, and you can add the setup, emotion, rating and notes to it. For orders that never filled, keep a small separate list, or add the note on the next related trade. The app does not record intended prices or orders that never traded, so this part is manual by nature.

A worked example (hypothetical)

A trader places a buy limit below the market at 10:00 server time with no expiry, because the plan says the level is strong. The market does not reach it that day. Two days later, in a different mood and with a different news backdrop, the order fills and the trade loses. The note for that trade says only that the stop was hit. Reviewing it, the trader realises the original reasoning had lapsed; the order should have carried a day-only expiry. The rule added to the plan: every pending order gets an expiry, and the expiry goes in the note.

The numbers here are made up to show the process; they are not a result or a recommendation.

Limits of this page

Frequently asked questions

What happens to a pending order when it expires?
The server removes it. No trade happens, so there is no deal and no closed position, only an order record with an expired or cancelled state.
Does an expired order show up in my trading journal?
Not in a journal built from closed positions, because no position existed. Keep your own note if the lesson matters.
Which clock does the expiry use?
The broker’s server clock. Check the offset to your own time before setting a specific hour.
Should every pending order have an expiry?
Many traders prefer it, because the reasons for an order go stale. It is a planning choice, not a platform requirement.
Can I change an expiry after placing the order?
Usually you can modify a pending order, including its expiration, but check your terminal for what your broker allows.

Related guides

Keep the trades that did fill in one local journal: 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