# 4 Overnight Trading Strategies In The S&P 500 (Night Strategies From Close To Open)

The overnight edge in the stock market is well documented:

**By using the tailwind from the close until the next open, you can develop some good short-term trading strategies. In this article, I present 4 overnight trading strategies in the S&P 500. The strategies buy at the close and sell the next day’s open. Because the holding period is short, the drawdowns are also small.**

(The strategies in this article were written in 2012. The test period is from October 2005 until 2012. We have an updated version of this article on our Substack service that includes the logic in plain English. Alternatively, you can buy the code for ALL our free strategies)

## Overnight trading strategy number one:

The first strategy buys when it makes a new n-day low and has an additional two variables. We go long at the close and exit at the open the next day.

P/L in % | #trades | #wins | Avg. |

8.4 | 35 | 29 | 0.24 |

The criteria about the close must be above the 200-day moving average is important. The equity curve gets a lot worse without it.

## Overnight trading strategy number two:

Strategy number 2 is also when S&P 500 makes a new n-day low. Just like in strategy number 1, there are two more variables.

Here are the results:

P/L in % | #trades | #wins | Avg. |

12.6 | 90 | 64 | 0.14 |

Most trades are below 0.4 (criteria 3) anyway. Here is the equity curve for this strategy:

This is a pretty nice equity curve! The profit factor is 2.6.

What happens if we turn it upside down and go short? It gets a lot more erratic. There is a small negative edge, but not tradeable. However, nice to know, though (not to go long these times).

## Overnight trading strategy number three:

Strategy number 3 uses three variables, all of different types:

The results are summarized in the table and graph:

P/L in % | #trades | #wins | Avg. |

13.57 | 59 | 46 | 0.23 |

The equity curve is just as upward sloping as the one above and has a profit factor of about 3.8. Here is the annual return trading 490 000 USD per position:

## Overnight trading strategy number four:

Strategy number 4 has, just like all the three previous strategies, three variables. This version is a slight variation of strategy 3:

P/L in % | #trades | #wins | Avg. |

36.55 | 168 | 109 | 0.23 |

The result is quite impressive. Why is it good? Probably because the market is short-term oversold and gets a quick bounce up from a bad day.

If holding to the close instead of selling at the open, the total P/L increases to 80% but the equity curve is a lot more erratic.

From previous research, I know there is a good chance of filling the gap if SPY opens down and is short-term oversold. So I put in a new twist: if SPY opens lower (the next day) than -0.1%, simply hold until the close (but exit at the open if opens higher than -0.1%). This boosts the strategy:

P/L in % | #trades | #wins | Avg. |

55.81 | 168 | 129 | 0.33 |

Here is the profit curve of the last twist to the strategy:

In the last years, it has paid off to hold this position until the next day’s close even on days when SPY opens up. But this was not the case earlier.

———————————–

If you would like to have the Amibroker and Tradestation code for this strategy plus 70+ other free trading strategies published on this website, please click on this link:

For more trading strategies, please click here:

- Free trading strategies
- Monthly trading edges (subscription service)

Hi. Can you kindly send me your email address again? I have misplaced it. Wanted to share a strategy with you mocked up in excel

Hi,

My address is oddmund@quantifiedstrategies.com.

Do you ever utilize any statistical tools for significance of findings? I’m increasingly afraid this way of testing (trying more or less semi-random combinations of indicators w/parameters, until the equity curve “appears good”) is near meaningless. As there are unlimited combinations, any statistical test would be invalid on the strategy results themselves (because you cannot adjust for the (underlying) degrees of freedom), even including testing out-of-sample, CANNOT avoid over fitting randomness, as the underlying possibilites are endless.

No, I don’t do that. There is always a danger for just hitting a random strategy, but to me this make a little sense. Otherwise I wouldn’t have traded it. The returns increases when oversold because of its mean reversion.

This is the way I have traded since 2001 and based basically all of reseach on. I trade many strategies and that (hopefully) should minimize the optimastion effect.

Hi Oddmund,

Nice post. Glad to see some others are embracing the idea of overnight trading!

Rob Hanna

Hey thanks for sharing this pattern. A few questions:

1) Is there economic logic you apply to ensure a high likelihood of this theoretical edge persisting into the future?

2) How would someone trading this know if the theoretical edge erodes, at low cost?

Hi!

1. Economic? I don’t use any fundamental research at all in my trading. I’ve been trading this one for some months and has worked well so far.

2. Looking back, it seems S&P is more mean reversion now than it was in the past. By past I mean prior to 2000. I simply use a cumulative graph of the return. As a rule of thumb I usually start questioning after 6 months with flat or negative returns… I have no other answer/solution as regards this problem. It has worked for me in the past. But I always trade double digit number of strategies.

Great job Oddmund! Have you tried to extend the timeframe back to the issuing of SPY? And maybe would be great seeing them joyned all together in only one backtest. I think results will be interesting. I’m doing a similar job at my blog and with my trading although I’m focusing on much more specific bar patterns.

Hi, thanks for the nice comment. I’ll have a look at your blog later. You’re mainly trading similar patterns with seasonality?

[…] Comments In November 2012 I summarized some strategies when holding from the close until tomorrow’s ope… These strategies have worked well since I publsihed it. Today I have another one. It’s based […]

Wondering if you have tests results of these overnight strategies since 2012? It’s been 11 years…would be interesting to see results now.

Thanks for all the fun and interesting posts you do!

Brian