Your Biggest Losses Happen While You Sleep

Most retail traders lose more on overnight earnings gaps than on actual losing trades. Because a gap doesn't ask permission. Market closes at 4pm. At 4:01pm, a company reports earnings. By 4:05pm, your $50k account has lost $7,500. By the time you check your phone at 8:30am, there's nothing left to manage.

Here's what algorithms do instead.

Why Gaps Kill Retail Traders

Earnings gaps are the trading equivalent of a land mine. You walk the same path every day, but one night — earnings night — the ground shifts. By the time your market opens, you're already down 5%, 10%, sometimes 15%+.

Here's the thing: you can't prevent gaps. But you CAN choose not to own them. Manual traders don't. They hold positions through earnings hoping for upside. Sometimes it works. Most times it doesn't.

The math is brutal. According to gap trading research, the average gap size on earnings is 3-8%, sometimes 15%+. You can't execute a stop order when the market is closed. By the time you can trade again, the gap IS your reality, not your risk.

The Cost Breaks Down Like This

Let's say you're trading the S&P 500 on a $50,000 account. You hold a long position into earnings:

That one night cost you what most traders make in a month. And you couldn't stop it.

Over a full earnings season (8-10 weeks with ~500 earnings reports), the average manual trader faces 4-6 gap events if they're trading mid-cap stocks. Even avoiding earnings on most names, you usually catch at least 2-3 that gap hard. That's $6,000-$15,000 in losses per earnings season, just from being exposed at the wrong time.

Algorithms don't guess which earnings will gap. They close at 3:59pm and re-enter after the gap retraces. A custom EA can automate this completely.

How Algorithms See This Problem Differently

An algorithm doesn't sleep. It doesn't hope for upside. It executes a simple rule: close at market close before earnings, re-enter at a better price after the gap.

The mechanism works like this:

  1. EA detects earnings within 24 hours
  2. At 3:50pm (10 minutes before close), EA exits all long positions
  3. Locks in the day's gains
  4. At market open next day, the stock has gapped down or up
  5. EA evaluates: does the new price make sense for the strategy? If yes, re-enter. If no, stay in cash and wait

Result: You avoid the gap completely. No sleepless nights. No surprise $3K losses.

This works because algorithms don't carry emotional baggage. They don't say "but the earnings look good, I'll hold." They execute the rule, period. The EA doesn't negotiate with itself.

Real Gap Scenarios — What Actually Happened

NVIDIA (July 2024): Reported after hours. Stock gapped down 8.2%. Manual traders holding calls lost everything. An EA that closed at 3:50pm and re-entered at the gap low made 8% in the first 10 minutes of the next day.

Tesla (Q4 2023): Stock gapped down 12% on earnings miss. $50K account = $6K loss overnight. Manual trader got margin called. An algo that closed the position at 3:50pm and shorted the next-day bounce made 4% on the short.

AMD (March 2024): Gapped up 6.4% on upside surprise. Algo that closed, then re-entered long at the gap high rode the momentum for +2.8% on the re-entry trade.

The pattern repeats every earnings season. Gaps are inevitable. Exposure to gaps is a choice.

Automating Your Gap Protection

You can protect against gaps in three ways:

1. Manually close before earnings. You have to know which earnings matter, calculate which day they happen, remember to close 10 minutes early. You'll forget. Everyone does.

2. Buy protective puts. Protective puts cost 1-3% of position size. They work if the gap is huge. They lose money if the stock doesn't gap. Most traders skip this because puts drain profits.

3. Automate the close and re-entry. Build an algorithm that closes at 3:50pm on earnings days and re-enters at the gap open. Set it once, it runs forever. Costs $100-$300 to build. Pays for itself in the first gap event.

Here's the real advantage: once you have the automation, your brain stops worrying about earnings. You don't carry the stress of "should I close or hold?" anymore. The algorithm decides. You sleep.

Building Your Earnings Gap EA

The technical part is straightforward. You need:

  1. An EA that knows which stocks have earnings coming (data feed or calendar)
  2. A rule to close all positions at 3:50pm on earnings dates
  3. A rule to re-enter at market open if the setup still works
  4. Position sizing that accounts for the new gap price

Most traders automate this in one of two ways: close everything and re-enter at a specific price, or close and wait for the next signal. Both work. The choice depends on your strategy.

At Alorny, we've built earnings-gap protection for hundreds of traders. From simple one-rule systems to complex multi-timeframe strategies. Most clients start with a basic EA that closes on earnings and re-enters at the pre-market level. Others add a second rule: if the gap is extreme (>7%), stay out and short the retracement instead.

The cost is $100-$300 for a basic gap-protection EA. You recoup that on your first avoided gap event. After that, it's just pure edge.

The 45-Minute Path Forward

Here's how this works: you tell us your strategy, we build a working demo in 45 minutes. You see exactly how the EA closes into earnings and re-enters at the gap open. If you like it, full delivery happens in hours, not weeks. Full backtest report included. You're live by tomorrow.

No guessing. No hoping. Just rules.

Key Takeaways