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 bucket | Meaning | What to look at |
|---|---|---|
| Under 5 minutes | Immediate re-entry or split decision | Average result and share of losses before it |
| 5 to 30 minutes | Quick follow-up | Whether results change after a loss |
| 30 minutes to 4 hours | Normal pacing for many traders | Use as your baseline |
| Over 4 hours | Waited for a new setup or a new session | Average 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 trade | Trades | Net result | Average | Win rate |
|---|---|---|---|---|
| Under 5 minutes | 14 | -52.00 | -3.71 | 29% |
| 5 to 30 minutes | 19 | -8.00 | -0.42 | 42% |
| 30 minutes to 4 hours | 33 | +61.00 | +1.85 | 55% |
| Over 4 hours | 16 | +22.00 | +1.38 | 50% |
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
- Separate sessions. A long gap overnight is not patience. Restrict the analysis to gaps inside one trading day, or label overnight gaps separately.
- Watch the sample. With only a few trades per bucket, averages swing with a single outlier. Compare with profit concentration to see whether one trade drives a bucket.
- Check automated trades. Expert Advisor trades open on their own schedule and make the gaps meaningless. Filter them out first, using manual versus Expert Advisor trades.
- Keep size in view. If you trade larger after a loss, a short gap and a big result may share one cause. See position size changes.
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
- Gaps are only as good as the timestamps; weekends, holidays and daylight-saving changes distort them.
- The history cannot tell you what you were doing between trades, such as analysing, waiting or being away.
- Split entries and Expert Advisor trades produce gaps that do not reflect your decisions.
- Small samples and past patterns do not predict future results, and nothing here is advice.
Frequently asked questions
How do I calculate the time between trades in MT5?
Should I use open-to-open or close-to-open gaps?
Why are some gaps zero or negative?
Do weekends count as gaps?
Does the journal app show gaps between trades?
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
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