Skip to content

Night and day: overnight against intraday returns in S&P 500 futures

Micro E-mini S&P 500 (MES) · 5-minute bars · 2016 to 2026 · Seasonality

Depends on the period: it lost in sample (profit factor 0.97) and made money out of sample (1.22).

Profit factor, out of sample
1.22
Average trade, out of sample
+0.02R
Win rate, out of sample
57%
Trades, 10 years
2,643
Max drawdown
$5,796
Pass odds, median plan
0.5%

Hypothetical results. These results are based on simulated or hypothetical performance results that have certain inherent limitations. Unlike the results shown in an actual performance record, these results do not represent actual trading. Also, because these trades have not actually been executed, these results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated or hypothetical trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to these being shown.

Abstract

We backtested the overnight drift rules on Micro E-mini S&P 500 (MES) 5-minute bars from 2016-01-11 to 2026-10-30: 2,643 trades, with commission and a tick of slippage on every market and stop fill. In sample (to 2023-08-03) it made −0.00R per trade with a profit factor of 0.97; out of sample (from 2023-08-04) +0.02R per trade and 1.22 over 794 trades. 16 of the 16 parameter settings we tried were profitable out of sample. Sized at $250 of risk a trade, simulated 50K evaluations passed 0% to 2% of the time across 36 tracked plans.

1Hypothesis

Split every day into the hours the cash market is closed and the hours it is open. Then hold the future only overnight, from 15:55 to 09:35 ET.

If, as studies of stock indices found, most of the long-run gain came overnight, holding only overnight should keep most of the return with less time in the market.

2Data

Instrument
Micro E-mini S&P 500 (MES), traded on the ES price series (ES.c.0: front month, rolled on the calendar). CME Globex via Databento.
Period
2016-01-11 to 2026-10-30: 2,746 sessions, 3,770,901 one-minute bars, built into 210,816 5-minute bars of the regular session (09:30 to 16:00 ET).
Costs
$0.75 commission a contract each way and 1 tick ($1.25) of slippage on every market and stop fill. Limit orders fill when price touches them; market orders fill at the next bar's open and stops at their price, each with one tick of slippage; when a bar touches both the stop and the target, the stop counts.
Position size
About $250 of risk a trade: micro contracts, rounded down, at least one. R is a trade's net P&L divided by its risk at entry.
Out of sample
The last 30% of weekdays: 2023-08-04 on (846 days), after 1,974 in-sample days. The rules were fixed before either side was run.

3Method

Our reading of the publicly described rules; the creator may trade it differently. The rules, exactly as the code runs them:

  1. Entry: buy at entry_min (15:55 ET, as minutes after midnight: 955), every regular session.
  2. Exit: sell at exit_min (09:35 ET: 575) the next session, after its first 5-minute bar. Weekends and holidays are held through.
  3. Stop: 2 times the 10-day average true range below the entry, for a defined risk.
  4. Size: about risk_usd dollars of risk a trade (micro contracts, rounded down, at least 1 and at most max_contracts).
bot.py, the file the engine ran
"""Overnight against intraday: hold Micro E-mini S&P 500 (MES) from the close to the next open, long only. Rules:  1. Entry: buy at `entry_min` (15:55 ET, as minutes after midnight: 955), every regular session.  2. Exit: sell at `exit_min` (09:35 ET: 575) the next session, after its first 5-minute bar. Weekends     and holidays are held through.  3. Stop: 2 times the 10-day average true range below the entry, for a defined risk.  4. Size: about `risk_usd` dollars of risk a trade (micro contracts, rounded down, at least 1 and at     most `max_contracts`)."""import qy  class Bot(qy.Strategy):    """Own the market overnight only."""     symbol = "MES"    timeframe = "5m"    session = "rth"    params = {"entry_min": 955, "exit_min": 575, "risk_usd": 250, "max_contracts": 50}    max_position = 50    overnight = True     def setup(self):        self.day = None        self.prev = None          # the close of the session before the last completed one        self.prev_close = None    # the latest bar's close        self.trs = []     def _size(self, risk_points):        per_contract = risk_points * self.point_value        n = int(self.p.risk_usd // per_contract) if per_contract > 0 else 1        return max(1, min(self.p.max_contracts, n))     def on_bar(self, bar):        if bar.date != self.day:            if self.day is not None and self.prev_close is not None:                if self.prev is not None:                    self.trs = (self.trs + [max(self.dh, self.prev) - min(self.dl, self.prev)])[-10:]                self.prev = self.prev_close            self.day, self.dh, self.dl = bar.date, bar.high, bar.low        else:            self.dh, self.dl = max(self.dh, bar.high), min(self.dl, bar.low)        self.prev_close = bar.close        t = bar.dt.hour * 60 + bar.dt.minute + 5        if self.position.is_long and t == self.p.exit_min:            self.close_position("morning exit")            return        if t != self.p.entry_min or not self.position.is_flat or len(self.trs) < 10 or self.orders:            return        atr = sum(self.trs) / 10        self.buy(self._size(2 * atr), stop_price=bar.close - 2 * atr, tag="Overnight long") 

4Results

Table 1. In sample (2016-01-11 to 2023-08-03) against out of sample (2023-08-04 to 2026-10-30), after costs.
StatisticIn sampleOut of sampleAll
Trades1,8497942,643
Net P&L−$2,117+$10,055+$7,938
Profit factor0.971.221.07
Average trade0.00R+0.02R+0.01R
95% interval of the average−0.01 to 0.010.00 to 0.040.00 to 0.02
t-statistic of trade R−0.302.291.06
Win rate53%57%54%
Average win / average loss0.850.930.90
Max drawdown$5,552$5,796$5,796
Sharpe ratio (daily, annualized)−0.151.060.33
Longest losing streak799
Long / short profit factor0.97 / n/a1.22 / n/a1.07 / n/a
Average holding time1688 min1677 min1685 min
Commission paid$2,901$1,191$4,092
Cumulative P&LDrawdown from the highOut of sample from 2023-08-04

Drag across the chart to zoom into a period, double-click to reset.

Figure 1. Cumulative P&L after costs and its drawdown from the running high, 2016-01-11 to 2026-10-30, at about $250 of risk a trade. The shaded part is out of sample.
In sample (1,849 trades)Out of sample (794)Averages

Averages: 0.00R in sample, +0.02R out of sample.

Figure 2. The distribution of trade results in R, as a share of each side's trades. Bars are in sample; the line is out of sample.
Overnight, 16:00 to 09:30Regular session, 09:30 to 16:00Both
Figure 3. Cumulative log returns of the S&P 500 future overnight (16:00 to 09:30 ET) and in the regular session (09:30 to 16:00 ET)

5Robustness

We reran the strategy on a grid of 16 settings of its two main parameters, each on the full history with the same split. 5 were profitable in sample and 16 out of sample.

660
1.14
1.17
1.24
1.17
630
1.16
1.19
1.25
1.19
600
1.17
1.21
1.28
1.21
575
1.17
1.22
1.31
1.22
900
930
945
955

Entry (minutes after midnight ET) across, exit (minutes after midnight ET) up. Solid outline: the defaults we tested; dashed: the in-sample best.

Hover a cell for both sides of the split.

Entry (minutes after midnight ET) 900.0 to 955.0 across · Exit (minutes after midnight ET) 575.0 to 660.0 in depth · Profit factor, out of sample 1.14 to 1.31 as height and shade. Drag or use the arrow keys to turn it.

Drag to rotate; ctrl or ⌘ and scroll to zoom.

Figure 4. Profit factor across entry (minutes after midnight ET) and exit (minutes after midnight ET), as a map and as a surface of the same grid. Values above 4 are drawn at 4.

What would change it

Nothing on the grid helps. Its in-sample best, entry (minutes after midnight ET) 900 and exit (minutes after midnight ET) 630, had profit factor 1.02 in sample but 1.16 out of sample, against 1.22 for the defaults.

In-sample yearOut-of-sample year95% interval
Figure 5. Average trade by calendar year with its 95% interval: a year-by-year walk through the history. Lighter bars are in-sample years.
Figure 6. Average trade in three volatility regimes: terciles of the 20-session average of the daily range (% of the open), up to the day before the trade (regular session). The cut-offs use the whole period, so this describes, it doesn't forecast.
Figure 7. Average trade by weekday and by the hour of entry (New York time), with 95% intervals.
Median25th to 75th percentile5th and 95thRuin: down $2,000
Figure 8. 2,000 simulated years of 252 sessions, drawn session by session from the whole backtest (days without trades included), with 48 paths drawn; red paths lost $2,000 at some point. Risk of ruin 26.3% [24.4%, 28.2%]; 64% of years ended up; median ending P&L +$815, 5th to 95th percentile −$2,898 to +$4,409.

6Prop-firm implications

The backtest's sessions run through the rules of 36 tracked 50K evaluations: 2,000 runs of up to 60 sessions each, with the drawdown and daily limits checked against each trade's intraday low. Intervals are Wilson 95% intervals of the simulation. A simulation of the past, not the chance that anyone passes.

PlanPass odds, 95% intervalPassFailOut of timeMedian sessions
FundedNext Futures Flex Challenge 50K2.3%24%73%53
Alpha Futures Standard 50K Evaluation0.5%11%89%49
Alpha Futures Zero 50K Evaluation0.5%10%89%49
Apex Trader Funding 50K EOD Evaluation0.5%10%89%49
Apex Trader Funding 50K Intraday Trailing Drawdown Evaluation0.5%13%86%49
AquaFutures Beginner 50K Evaluation0.5%4%96%49
Bulenox 50K Qualification Account (Legacy, Option 1, trailing drawdown)0.5%5%95%49
Bulenox 50K Qualification Account (Legacy, Option 2, EOD drawdown)0.5%4%95%49
Earn2Trade Gauntlet Mini $50K0.5%15%85%49
Earn2Trade Trader Career Path TCP500.5%15%85%49
Scale 0 to 10%.
Figure 9. Simulated pass odds by plan, best first, with each plan's fail and out-of-time shares and the median sessions to a pass.

7Limitations

  • Long only in a rising market: the result mixes the overnight effect with the market's drift.
  • Weekends and holidays are held, with their gap risk.
  • A backtest on the past, with fills simulated from one-minute bars; live fills, queues and outages differ.

8Conclusion

Depends on the period: it lost in sample (profit factor 0.97) and made money out of sample (1.22). Nothing on the grid helps. Its in-sample best, entry (minutes after midnight ET) 900 and exit (minutes after midnight ET) 630, had profit factor 1.02 in sample but 1.16 out of sample, against 1.22 for the defaults. A rule that loses for years and then wins says more about the market changing than about the rule: the out-of-sample gain needs data after 2026-10-30 before it means anything.

9References

  1. Cliff, M., Cooper, M. J., and Gulen, H. (2008). Return Differences between Trading and Non-Trading Hours: Like Night and Day. Working paper, SSRN.

Every number on this page comes from the MES bot above, run by our backtest engine on our own data. We publish what doesn't work as well as what does, and we don't tune rules to look good.

Hypothetical results. These results are based on simulated or hypothetical performance results that have certain inherent limitations. Unlike the results shown in an actual performance record, these results do not represent actual trading. Also, because these trades have not actually been executed, these results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated or hypothetical trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to these being shown.