A gap fill strategy bets that price will travel back to the previous session's close after the market opens away from it. You fade the gap: short a gap up, long a gap down, and take profit when the empty space on the chart is closed. It is simple to describe and easy to get wrong, because some gaps fill within hours and others never fill at all. This guide covers the rules you need to define, the situations where the idea breaks, and how to test it before it touches real money.
TL;DR
- A gap is the space between one session's close and the next session's open. A gap fill trade (also called a gap fade) trades back toward that close.
- The idea works best on small to moderate gaps with no major news behind them. It fails on gaps driven by real catalysts, where the move continues instead.
- Every gap trading rule must be written down before the open: gap size filter, entry trigger, stop, target, time limit and position size.
- Day trading carries real risk of loss, and the opening minutes are when emotional decisions cost the most. Test in simulation first.
- Rules this mechanical are well suited to automation, but only after you have backtested them and understand the results.
Table of Contents
- What a gap fill actually is
- Why traders like fading the gap
- Gap trading rules to define before the open
- A worked example on index futures
- Where gap fill strategies fail
- Be honest about the odds
- How to test a gap fill strategy properly
- Our perspective: rules beat willpower at the open
- Automating a gap fill idea on NinjaTrader 8
- FAQ
- Sources
What a gap fill actually is
A gap is a change in price between the close of one session and the open of the next, which leaves a blank space on the chart. StockCharts' ChartSchool describes gap trading as a way to exploit those differences, and notes that it should be done with a disciplined set of entry and exit rules.
Gaps come from information that arrives while the regular session is closed: earnings, economic data, geopolitical headlines, or simply a shift in overnight futures. The market then opens at a new price with no trading in between.
A gap is "filled" when price returns to the prior close. If the market closed at 100 and opens at 102, the gap fills when price trades back down to 100. Two ways to trade gaps follow from this:
- Gap fill (reversal): you trade toward the prior close, expecting the opening move to fade.
- Gap and go (continuation): you trade in the direction of the gap, expecting momentum to carry on.
MyFinEdu's gap trading guide draws the same line between gap-and-go continuation and gap-fill reversals. Which one you are facing on a given morning is the whole question, and no rule answers it perfectly.
Why traders like fading the gap
The logic is that an opening gap often overshoots. Early orders arrive in a thin, fast market, and price can stretch further than the news justifies. Once the first wave of orders is absorbed, price drifts back toward where the market last agreed on value.
That is a tendency, not a law. Some gaps mark a genuine change in sentiment. StockCharts notes that a breakaway gap can signal a change in market psychology, especially with above-average volume. Fading that kind of gap means standing in front of a freight train.
Treat any claim that "X% of gaps fill" with suspicion. Fill rates depend on the market, the period, the gap size and how you define a fill (full, half, same day, within a week). Numbers quoted without a clear method are marketing. The only fill rate that matters to you is the one you measure on the instrument you trade, with the rules you will actually use.
Gap trading rules to define before the open
The reason gap fill trades go wrong is rarely the idea. It is that the trader improvises at 9:31 a.m. with a moving price and a racing pulse. Write these rules down first.
1. Gap size filter
Decide the minimum and maximum gap you will trade. Tiny gaps are mostly noise and eat your edge in commissions and slippage. Very large gaps usually have a catalyst behind them and are the ones least likely to fill quickly. A common approach is to trade a middle band and skip the extremes, then check by backtest which band your instrument actually rewards.
2. Context filter
Ask what caused the gap. A gap into a known resistance level after a quiet night is a different trade from a gap on scheduled economic data. Many fade traders simply stand aside on days with major scheduled releases.
3. Entry trigger
Do not fade the first tick. Common triggers include waiting for the first few minutes to pass, waiting for a failed push in the direction of the gap, or waiting for price to lose a short-term moving average or the opening range low (for a gap up). The trigger is what separates a fade from a guess.
4. Stop loss
Place the stop where the trade idea is proven wrong, for example beyond the opening high on a gap-up fade, and size the position so that distance costs an amount you accept. A fade with no stop is how small losses become account-ending ones.
5. Target
The natural target is the prior close, but you can also scale out at half the gap and leave the rest. Check the reward-to-risk ratio: if the stop is as far away as the target, you need a high hit rate just to break even.
6. Time limit
A fill that has not happened by a set time (say, midday) is information. Many traders exit at a fixed time instead of holding a stale fade into the afternoon, when the day's character is already set.
7. Position size and daily loss limit
Fix risk per trade as a small share of the account, and set a daily maximum loss. This is where leverage bites. The SEC's day trading guidance warns that day trading is risky and that you should only risk money you can afford to lose, not money needed for living expenses, retirement or debts.
A worked example on index futures

Take a hypothetical morning in E-mini S&P 500 (ES) futures. This is an illustration with made-up numbers, not a recorded trade.
The prior regular-session close is 5,000.00. At the 9:30 a.m. ET open, ES prints at 5,012.00, a 12-point gap up. Your rules say:
- Trade gaps between 6 and 20 points.
- Skip days with a major scheduled release at 8:30 a.m. ET.
- Enter short only after price fails to make a new high for the first five minutes and trades below the five-minute low.
- Stop 3 points above the opening high.
- Target the prior close at 5,000.00, with a time exit at noon ET.
Suppose the five-minute high is 5,014.00 and you enter at 5,010.00. The stop is at 5,017.00, so you risk 7 points. The target is 10 points away. That is a reward-to-risk of about 1.4 to 1 before costs. At ES's $50 per point, risk is $350 per contract, so a $350 risk budget means one contract. The rules decided all of that before the open.
Now the other outcome. The market continues to 5,030 on a strong data surprise. Your stop is hit for a 7-point loss, and the rules say you stop for the day or the setup. That loss is part of the strategy. The point of writing rules is to make both outcomes boring.
Where gap fill strategies fail
- Trend days. When a gap opens and the market keeps running, fades lose repeatedly. A filter for scheduled news and for a strong overnight trend helps, but never eliminates this.
- Averaging down. Adding to a losing fade because "the gap has to fill" is the classic account killer. It is a hope, not a rule.
- Over-fitted tests. A backtest tuned until it looks perfect on past data often fails live. Test on data you did not use to tune, and keep your parameter count low.
- Ignoring costs. On small targets, commissions and slippage can consume much of the edge, especially at the volatile open.
- Moving the stop. The most common emotional error at the open is widening the stop after entry.
That last point is human, not technical. A study of stock day traders in PLOS ONE via PubMed Central looked at how emotions relate to actual changes in decision-making, and research on a London trading floor found that steroid hormone levels related to risk taking in real working conditions. The practical takeaway: the opening is when pressure is highest, so it is where a pre-defined rule is worth the most.
Be honest about the odds
Gap fill is a statistical edge at best, and edges are small. The SEC's day trading investor guide cautions that most day traders lose money, and that margin leverage magnifies losses as well as gains. Research on gambling-like behavior in day trading also describes how quickly speculation can become problematic for some people.
If you trade U.S. stocks with a margin account, pattern day trader rules apply, and FINRA has been proposing to replace the day trading margin provisions with intraday margin standards. Check your broker's current rules before you assume a given account size works. Futures traders face different margin arrangements, set by their broker and exchange. If you are unsure whether day trading suits your finances, talk to a licensed financial adviser, not a forum.
How to test a gap fill strategy properly
- Write the rules in one paragraph with numbers for every parameter. If you cannot, you do not have a strategy yet.
- Backtest on a long sample that includes trending, choppy and high-volatility years. Look at drawdown and the longest losing streak, not just total profit.
- Hold out data. Tune on one period and check on another.
- Add realistic costs for commissions and slippage.
- Run it in simulation in real time for weeks. This shows you how the rules feel and whether your platform executes them as you expect.
- Go live small, at a size where a bad week does not change how you trade.
The QuantifiedStrategies gap trading article is one example of how a gap fill idea can be turned into backtested rules, and is a useful model of what a rule set should look like, even if you end up using different parameters.
Our perspective: rules beat willpower at the open
We build automated strategies for NinjaTrader 8 and TradingView, so we see this problem from the execution side. Most traders who struggle with opening-range ideas like gap fills do not lack a setup. They lack consistency in following it at the moment of maximum noise.

That is why we think the right order of work is: define the rules, backtest them in the open, run them in simulation, and only then decide whether to let software execute them. A strategy you cannot reproduce is a strategy you cannot trust. That is the thinking behind publishing our backtest results and offering a backtest reproduction helper for HunterBreakOut so you can check numbers yourself rather than take our word for it.
We should also be clear about what we do not claim. Our strategies are not a promise of profit, and gap fill is one idea among many. Our flagship set, The Philosophers, is built around session-specific logic with morning reversal and afternoon continuation techniques for NQ and ES, and every setting such as exits, session windows and position size can be configured. If you want to understand why we think automation helps at all, our decision guide on automating futures trading lays out the case and its limits.
— charlie
Automating a gap fill idea on NinjaTrader 8
If your rules are mechanical, software can follow them without hesitation. That removes the in-the-moment decisions that cause the most damage: skipping a valid signal after a loss, or moving a stop because the trade feels wrong. It does not remove market risk, and a bad rule set automated is just a faster way to lose.
What to look for in any automated setup:
- Published, reproducible backtests, not a single curve screenshot.
- A simulation mode so you can watch it trade before you fund it.
- Configurable exits, session windows and sizing, so the strategy fits your risk, not the vendor's.
- A way to ask questions when behavior surprises you.
HuntersAlgo includes all of these. Every strategy and indicator is in one subscription, with setup guides, Discord support and published backtest results. Plans are $49.99 per month, $120 per quarter or $420 per year, with a 3-day trial before billing begins. You can browse the full strategy library or the chart indicators first, and size your trades with the free position size calculator.
If you are weighing other routes, such as coding it yourself, buying signals or using a visual builder, our page on alternatives to HuntersAlgo compares them by type.
FAQ
What is a gap fill strategy?
It is a trading approach that fades an opening gap, trading back toward the previous session's close. You short a gap up and buy a gap down, with a stop beyond the opening extreme and a target at the prior close. It is the reversal side of gap trading, as opposed to gap and go.
Is gap fill the same as a gap fade?
In practice, yes. Fading the gap means trading against the opening move, and the usual profit target is the fill. Some traders use "fade" for the trade and "fill" for the outcome, but they describe the same idea.
Do all gaps fill?
No. Gaps driven by major news or a shift in sentiment can stay open for a long time, and trend days can run far past the opening level. That is why a gap size filter, a news filter and a hard stop matter more than the fill itself.
Can you automate a gap fill strategy?
Yes, if every rule is numeric: gap size, entry trigger, stop, target, time exit and size. Backtest it with realistic costs, then run it in simulation before going live. Automation enforces the rules but does not make a weak strategy profitable, and trading futures involves substantial risk of loss.
Sources
- StockCharts ChartSchool: Gap Trading Strategies
- StockCharts ChartSchool: TA 101, Gaps
- MyFinEdu: Gap Trading Guide
- SEC: Day Trading, Your Dollars at Risk
- PMC: Emotions and decision-making in stock day traders
- PMC: Endogenous steroids and financial risk taking on a London trading floor
- PMC: Problematic trading, gambling-like behavior in day trading
- SEC: Comment on FINRA Rule 4210 intraday margin proposal
- QuantifiedStrategies: Gap Trading Strategy
