Revisiting Overnight vs Intraday Equity Returns

Back in May 2020, in the eye of the Covid storm, we looked at overnight vs intraday returns in US equities.

Intuitively, we’d probably expect to see higher average returns overnight when the market is closed – because it’s much more difficult to hedge and manage our exposures when the cash market is closed, so we might expect to get paid a premium, on average, for taking that risk.

And that’s exactly what we found:

Most of the returns have indeed come overnight – which is quite remarkable in my opinion – but at the same time, most of the big negative returns have also come overnight, which supports the idea of a premium associated with the additional risks of holding positions overnight.

This week, I wanted to see whether that behaviour had changed since 2020.

Let’s dive in.

First, we’ll get some data for the SPY ETF from Yahoo. In the code below, I’m sourcing a script called yahoo_prices.R, which retrives prices from Yahoo Finance. You can find the code here.

# load libraries and functions
library(tidyverse)

# set chart options
options(repr.plot.width = 14, repr.plot.height = 7, warn = -1)
theme_set(theme_bw())
theme_update(text = element_text(size = 20))

# functions for getting data
source("../../data_tools/yahoo_prices.R")
# get SPY data
spy <- single_ticker_prices_yahoo("SPY", "2000-01-01")
tail(spy)
A data.frame: 6 × 7
DateOpenHighLowCloseAdj.CloseVolume
<date><dbl><dbl><dbl><dbl><dbl><int>
61372024-05-22530.65531.38527.60529.83529.8348390000
61382024-05-23532.96533.07524.72525.96525.9657211200
61392024-05-24527.85530.27526.88529.44529.4441258400
61402024-05-28530.27530.51527.11529.81529.8136269600
61412024-05-29525.68527.31525.37526.10526.1045190300
61422024-05-30524.52525.20521.33522.61522.6146377600

Now we calculate:

  • overnight returns as the % difference between the close price and the previous open
  • intraday returns as the % difference between the open and the close
# calculate intraday and overnight returns
spy <- spy %>%
  mutate(intraday = Close/Open - 1) %>%
  mutate(overnight = Open/lag(Close) - 1) %>%
  na.omit()

tail(spy)
A data.frame: 6 × 9
DateOpenHighLowCloseAdj.CloseVolumeintradayovernight
<date><dbl><dbl><dbl><dbl><dbl><int><dbl><dbl>
61372024-05-22530.65531.38527.60529.83529.8348390000-0.0015452878-0.001336121
61382024-05-23532.96533.07524.72525.96525.9657211200-0.0131341934 0.005907565
61392024-05-24527.85530.27526.88529.44529.4441258400 0.0030122688 0.003593342
61402024-05-28530.27530.51527.11529.81529.8136269600-0.0008675241 0.001567728
61412024-05-29525.68527.31525.37526.10526.1045190300 0.0007989328-0.007795257
61422024-05-30524.52525.20521.33522.61522.6146377600-0.0036414911-0.003003148

Plot overnight and intraday returns:

spy %>%
  pivot_longer(c(intraday, overnight), names_to = 'period', values_to = 'returns') %>%
  group_by(period) %>%
  mutate(cumreturns = cumprod(1+returns)) %>%
  ggplot(aes(x=Date, y=cumreturns, color=period)) +
    geom_line() +
    labs(
      title = "Overnight vs Intraday Returns",
      y = "Cumulative Return"
    )

We can see that the effect has persisted: the majority of the returns over the full cycle have come overnight. As have the most significant negative returns. No risk no reward.

I also wanted to see what the effect looked like using adjusted open and close prices:

spy %>% 
  mutate(Adj.Open = Open * (Adj.Close/Close)) %>% 
  mutate(Adj.intraday = Adj.Close/Adj.Open - 1) %>%
  mutate(Adj.overnight = Adj.Open/lag(Adj.Close) - 1) %>%
  na.omit() %>%
  pivot_longer(c(Adj.intraday, Adj.overnight), names_to = 'period', values_to = 'returns') %>%
  group_by(period) %>%
  mutate(cumreturns = cumprod(1+returns)) %>%
  ggplot(aes(x=Date, y=cumreturns, color=period)) +
    geom_line()+
    labs(
      title = "Overnight vs Intraday Returns",
      subtitle = "Calculated on adjusted prices",
      y = "Cumulative Return"
    )

The effect is even more pronounced using adjusted prices.

The overnight drift

This paper looks at the returns from equity index futures and suggests that nearly 100% of those returns have come in one hour between 2 am and 3 am.

This is an insane result if true, and something we’ve been meaning to look into for a while. We’ll do that in the near future.

Leave a Comment