← All strategy guides

How to backtest a small-cap gap short strategy

A gap short (or gap fade) sells a small-cap stock that opens far above the prior close, on the view that the move is overdone and will give back part of it during the day. It is one of the most tested small-cap setups, and one of the easiest to get wrong, because results depend heavily on fills, borrow costs and the few days when the stock keeps running.

This guide shows how to set the test up in Trade4, which settings matter most, and how to read the results without fooling yourself.

What you are testing

The rule set has three parts: which stocks qualify (the gap), when and how you enter (the trigger), and how you get out (stop, target and time). Change one part at a time. If you tune all three at once you will find a combination that looked great in the past and has no reason to keep working.

Most of the edge in a fade comes from the filter, not the entry. A 40 % gap on 200,000 premarket shares behaves differently from the same gap on 20 million shares, and a $1 stock behaves differently from a $9 stock.

Starting settings in the Strategy Builder

Use these as a first run, then adjust one group at a time.

Side
Short.
Gap filter
Minimum gap % against the prior close (for example 30 % or more), with an upper limit if you want to leave out the extreme movers.
Price and volume
A price range that matches what you can actually borrow and trade, plus a premarket volume minimum so the test only takes liquid names.
Entry window
Earliest and latest entry time in ET. Compare premarket entries, the open, and entries 15 to 30 minutes after the open as separate runs.
Entry confirmation
Optional: distance from VWAP, distance from the session high, or a candle pattern, so you do not short straight into strength.
Exits
A stop-loss % above entry, a take-profit %, and a time exit before the close. Add breakeven protection only after the basic version works.
Costs
A cost profile with commission, locate (hard-to-borrow) fees and slippage. Shorts on small caps can lose most of their paper edge to borrow costs.
Bar size
1-minute bars are enough for a first pass. Use smaller bars when stops are tight, because the order of the high and the low inside a bar decides whether the stop or the target was hit first.

What to check in the results

  • Trade count first. A few dozen trades prove nothing; look for hundreds across different market periods.
  • Gross against cost-adjusted P&L. If the edge disappears after locates and slippage, it was not there.
  • The worst trades. Open the trade charts for the largest losses and see whether one squeeze wipes out months of gains.
  • Buckets by gap size, price and premarket volume. Good filters show up as a clear slope, not as one lucky bucket.
  • Results by year. An edge that only worked in one year is a period effect.
  • News tags. Fades behave differently on offering news than on contract or FDA news.

Common mistakes

  • Assuming every short was borrowable at no cost.
  • Using wide bars with tight stops, which hides the days the stop was hit first.
  • Tuning the stop and target until the equity curve looks smooth.
  • Ignoring halts and the gap through the stop that follows a halt.
  • Judging the strategy on average P&L without looking at the largest single-day loss.

Build this strategy without code and run it on tick data.

Sign up free

Questions and answers

How many trades do I need before trusting a gap short backtest?

Treat anything under about 100 trades as a first look. Aim for several hundred trades over more than one market period, and confirm on dates you did not use to choose the settings.

Which bar size should I use?

Start with 1-minute bars. If the stop is within a few percent of entry, re-run on smaller bars, because the sequence of prices inside each bar decides stop-versus-target outcomes.

Can I include locate and borrow costs?

Yes. Trade4 cost profiles hold commission, locate / hard-to-borrow fees and slippage, and results can be switched between gross and cost-adjusted P&L.

Can I test premarket entries?

Yes. Entry windows are set in Eastern Time and can start in premarket and run through the close into after-hours.

Further reading

Other strategy guides

This guide is educational and is not investment advice. Backtest results describe the past and do not guarantee future results.