How Automated Trading Systems Handle Overnight Risk
Going flat at the close vs. holding overnight is one of the most consequential decisions in systematic trading. Here's how AI navigates it with data.
The Decision Nobody Talks About Enough
At 4:00 PM EST, every trading system faces a decision: hold the position overnight, or close it out?
This sounds simple. It isn't. The overnight hold decision is one of the highest-impact choices in systematic trading, and most strategies get it wrong — either by always staying in, always staying out, or making the decision inconsistently.
Automated trading systems handle this with explicit rules, data-driven signal evaluation, and risk parameters calibrated to the current market environment. Here's what that actually looks like.
Why Overnight Holds Are Different
The overnight period — from market close to the next morning's open — has fundamentally different risk characteristics than the regular trading day.
No continuous liquidity: Once the market closes, you can't exit your position at the prevailing price. If news breaks overnight, you'll open the next day at whatever the market determines the new equilibrium is — which could be dramatically different from your close price. This gap risk is a feature of overnight holds that simply doesn't exist for intraday positions.
High event density: Much of the information that moves markets is released outside trading hours. Earnings reports are typically released after hours or before market open. Economic data (jobs reports, CPI, GDP) often drops at 8:30 AM — before the open. Fed statements, geopolitical developments, and international market moves all occur outside U.S. market hours.
The historical premium: Despite the risks, holding overnight has historically been where much of the market's long-run returns have come from. Research consistently shows that a significant portion of long-term equity gains accrue in the overnight period rather than intraday. This isn't a coincidence — it reflects the compensation markets pay for bearing overnight gap risk.
Carry and financing costs: For leveraged positions, overnight holds accrue financing costs. For short positions, there are borrowing costs. These are small per night but meaningful over a long-run strategy.
The Data Behind Overnight vs. Intraday Returns
The research on intraday vs. overnight returns is striking.
Studies of the S&P 500 over multiple decades have found that if you invested only in the overnight period (buying at the close, selling at the next open), you would have captured roughly 100% of the index's long-run returns, with the intraday period producing near-zero returns in aggregate.
This doesn't mean intraday trading is impossible to profit from — plenty of strategies do it successfully. But it does mean that the "buy at close, sell at open" strategy is a surprisingly robust long-term approach, and that the overnight premium is real and persistent.
For systematic strategies, this has a clear implication: be intentional about overnight holds. Don't default to always being flat or always holding. Develop a principled framework for when overnight risk is worth taking.
How AI Systems Evaluate the Hold Decision
Automated trading systems don't flip a coin at 3:59 PM. They evaluate a set of signals to determine whether the expected return from holding overnight justifies the risk. Here are the key inputs.
Signal Strength at Close
If the intraday signal that prompted the trade is still strong at the close, there's a case for holding overnight. Weak or deteriorating signals at close suggest the thesis is losing conviction — exactly when you don't want to take overnight gap risk.
Volatility Environment
VIX level is a primary input for the overnight hold decision. In a low-VIX environment, overnight gaps are typically small, and the risk of holding is lower. In a high-VIX environment, overnight gaps can be large and unpredictable. Many systematic strategies reduce or eliminate overnight holds when VIX is above a defined threshold.
Macro Calendar
A systematic strategy that holds overnight going into a major FOMC decision, a CPI release, or a major earnings report is taking an entirely different risk than one holding through a quiet night. The macro calendar is a critical input for the overnight hold decision.
Well-designed AI systems track the economic data calendar and weight overnight hold decisions accordingly. High-impact events on the next morning's calendar are a reason to be flat, even if the position would otherwise qualify for an overnight hold.
Direction of the Overnight Position
Historical data shows that long positions have benefited more from overnight holds in aggregate than short positions, which makes sense given the long-run upward trend of equity markets. Short overnight positions bear the overnight premium from the other side.
This doesn't mean short overnight holds never make sense, but the threshold for holding short positions overnight should generally be higher.
Recent Gap Behavior
In periods where markets have been experiencing large overnight gaps (whether due to earnings season, geopolitical uncertainty, or macro volatility), the risk distribution for overnight holds changes. AI systems can monitor recent gap statistics and adjust thresholds accordingly.
The Risk Management Layer
Even when the signals support an overnight hold, position sizing should reflect the additional risk. A position that's appropriate for an intraday hold might be too large for an overnight hold.
A simple approach: size overnight positions more conservatively than intraday positions, especially in elevated VIX environments. If your standard intraday size is 5% of portfolio, consider 3-4% for overnight holds.
More sophisticated systems model the expected overnight move distribution based on current volatility and set overnight position sizes accordingly, targeting a consistent dollar-at-risk regardless of the volatility environment.
The Stop-Loss Problem
Here's a practical challenge with overnight holds: stop-losses don't work normally.
A 2% stop-loss is meaningful during market hours — if the price moves 2% against you, you exit. Overnight, the price can gap through your stop. If you're long SPY and something bad happens overnight, you might open 5% lower — well past your stop price. You exit at 5% loss, not 2%.
This is called stop-loss gap risk, and it's a real consideration for overnight holds. AI systems handle this by:
- Reducing position sizes so that even a worst-case gap produces a manageable loss
- Using options or other defined-risk structures for overnight holds in high-risk environments
- Being more selective about which setups warrant overnight exposure
There's no perfect solution. Gap risk is a fundamental feature of overnight holds, not something that can be fully engineered away.
The Practical Framework
Here's how a systematic overnight hold decision process works in practice:
Step 1: Evaluate signal strength at close. Is the position's thesis still intact?
Step 2: Check VIX level. Above threshold → reduce size or go flat.
Step 3: Check macro calendar for next 16 hours. High-impact events → go flat or dramatically reduce size.
Step 4: Size the overnight position appropriately for the current volatility regime.
Step 5: Define the maximum acceptable overnight loss before position decision. Set alerts accordingly.
This process runs automatically in an AI system. For discretionary traders, it requires discipline to execute consistently — which is exactly where most traders fail.
See how Lukra approaches portfolio risk management →
Getting It Right
The overnight hold decision doesn't have a universally correct answer. The right approach depends on your strategy's edge, your risk tolerance, and current market conditions.
What's not okay is making the decision randomly, emotionally, or inconsistently. The overnight hold deserves as much rigor as the entry and exit — maybe more, because the consequences of getting it wrong are felt at the open the next morning with no opportunity to intervene.
AI systems get this right by design. The rules are explicit, the inputs are monitored continuously, and the decision is made consistently. That consistency is worth more than any individual correct hold or exit decision.
Past performance is not indicative of future results. All trading involves risk of loss. This content is for educational purposes only.
Ready to see AI-driven trading in action?
View Live Performance