Time between trades in MT5: what the gaps in your history show

Close-to-open gaps, bucketed and compared, with a hypothetical example and the traps that distort them.

Time is a part of your trading history that most people never look at. The history shows when each position opened and closed, and from those timestamps you can work out how long you waited between one trade and the next. That gap is revealing. A short gap right after a loss can point to a rushed follow-up entry, a long gap after a win can reflect patience or a missed setup, and a cluster of trades opened a minute apart can be one decision split into several rows. This page shows how to compute the gaps from MetaTrader 5 history and how to read them carefully.

Which timestamps to use

There are two sensible definitions of the gap. The first is the time from the close of one trade to the open of the next, which measures how long you stayed out of the market. The second is the time between two consecutive opens, which measures how often you decide to enter. For behaviour after a loss the first is more useful, because it asks how quickly you came back. Use one definition for the whole analysis and say which in your notes.

All times in the history are on your broker's server clock. That does not matter for a gap, because both timestamps share the same clock, except across a daylight-saving change or a weekend. Gaps that span a weekend or a market holiday should be excluded or at least labelled, since a three-day gap from Friday night to Monday morning says nothing about your behaviour. The background is in server time explained and broker holiday hours and your trade history.

Prepare the data

Take closed positions, not deals, and sort them by open time. Splitting a single decision into several positions, for example when you scale in, creates trades opened seconds apart that are really one idea; they will produce gaps of almost zero. Either combine them in your spreadsheet or exclude gaps under a minute from the analysis. The reasons are discussed in scaling in and out in trade history. Copy rows using the method in sorting, filtering and copying history rows.

Build the gap table

In a spreadsheet, add a column that holds the previous trade's close time on each row, then subtract it from this row's open time and convert the result to minutes. Add a second column that holds the previous trade's net result. Then group the gaps into buckets and pivot.

Gap bucketMeaningWhat to look at
Under 5 minutesImmediate re-entry or split decisionAverage result and share of losses before it
5 to 30 minutesQuick follow-upWhether results change after a loss
30 minutes to 4 hoursNormal pacing for many tradersUse as your baseline
Over 4 hoursWaited for a new setup or a new sessionAverage result and trade count

A worked example (hypothetical)

These figures are invented for illustration only. They do not describe any real account.

Gap after a losing tradeTradesNet resultAverageWin rate
Under 5 minutes14-52.00-3.7129%
5 to 30 minutes19-8.00-0.4242%
30 minutes to 4 hours33+61.00+1.8555%
Over 4 hours16+22.00+1.3850%

In this made-up data, trades opened within five minutes of a loss are clearly weaker than the rest, and the average improves as the gap lengthens. It is tempting to conclude that waiting makes you better, but it may also be that quick re-entries are the trades outside your plan. The way to find out is to read the notes on those fourteen trades. If most carry the same emotion tag or were marked as not following the plan, you have a specific behaviour to address rather than a vague feeling. This connects with streaks in your history and with the idea that a rule such as a short pause after a loss is something you decide in advance, not mid-trade.

Reading gaps without fooling yourself

Turning the gaps into a habit

A review question that fits this analysis is: what did I do in the first thirty minutes after my last losing trade, and was it in the plan? Answer it for three or four recent losses in your journal notes. If a pattern appears, a simple written rule on your plan, such as stepping away from the screen for a set time after a loss, is one possible response. Whether that suits you is your own decision, and this page is not trading advice. The point of the data is to make the pattern visible so that you decide on purpose.

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. Every closed position becomes an entry with a plan-followed flag, an emotion tag and notes, so after you spot a quick re-entry pattern you can filter your entries by that emotion and read what you wrote. Export Report to Excel includes a Trades tab with open and close times for the gap calculation. 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

How do I calculate the time between trades in MT5?
Sort closed positions by open time, then subtract the previous trade's close time from the current open time in a spreadsheet and convert to minutes.
Should I use open-to-open or close-to-open gaps?
Close-to-open measures how long you stayed out, which suits questions about behaviour after a loss. Open-to-open measures entry frequency. Use one and note which.
Why are some gaps zero or negative?
Overlapping trades, hedges or split entries open before the previous one closes. Exclude them or analyse them separately.
Do weekends count as gaps?
They should be excluded or labelled, since market closure, not your behaviour, causes them.
Does the journal app show gaps between trades?
The Excel export gives open and close times per trade for your own calculation, and you can tag quick re-entries in the journal and filter by that tag.

Related guides

See your habits in your own data: 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