How to backtest a small-cap swing strategy
A swing strategy holds a position for more than one day: a multi-day fade after a run-up, or a bounce after several down days. Compared with a day trade, there are fewer trades, larger moves and a risk a day trade never carries: the overnight gap.
This guide covers the settings to start from in Trade4 and the checks that matter for multi-day holds.
What you are testing
A swing setup is usually defined on daily bars (for example three up days in a row and a close near the high) and entered intraday. The backtest needs both: daily rules to pick the day and the stock, and intraday rules for the actual entry.
Because each trade lasts longer, the sample grows slowly. Plan for a long date range and judge the worst trades as carefully as the average.
Starting settings in the Strategy Builder
Define the daily condition first, then the entry, then the hold.
- Daily pattern
- Use the daily pattern wizard for the sequence of days you want: direction, size of the daily ranges, and where the close sits in the range.
- Daily context
- Distance from daily moving averages and change over the last several days, to separate extended stocks from quiet ones.
- Intraday entry
- An entry window in ET and, if you want, an intraday confirmation such as VWAP distance or a candle pattern.
- Hold days
- The swing hold length in days. Compare 1, 2, 3 and 5 days as separate runs.
- Exits
- Stop-loss and take-profit %, with a moving-average exit as an alternative to a fixed target.
- Costs
- For shorts, include borrow costs for every night held. Overnight borrow can be a large part of the cost of a multi-day short.
- Data
- Daily filters use split-adjusted end-of-day data, so stocks with a recent split are handled on a consistent price scale.
What to check in the results
- Trade count across the whole date range, and the number of independent periods it covers.
- The largest losses and whether they came from overnight gaps beyond the stop.
- Results by hold length.
- Maximum drawdown and the longest losing stretch, since capital stays tied up longer.
- Overlapping positions: how many trades were open at the same time, and the combined risk.
Common mistakes
- Assuming the stop is always filled at its price. Overnight gaps fill worse.
- Too short a date range for a strategy that trades a few times a month.
- Ignoring overnight borrow costs and availability on shorts.
- Counting several trades from one market event as independent evidence.
Build this strategy without code and run it on tick data.
Sign up freeQuestions and answers
Can Trade4 hold positions for several days?
Yes. Swing settings define the number of hold days, and strategies can combine daily pattern rules with an intraday entry.
How far back can I test?
The date range per backtest depends on the plan: 2 years on Starter, 5 years on Pro, and all available data on Elite.
How are stock splits handled in daily rules?
Daily filters and daily moving-average rules use adjusted end-of-day data, so prices before and after a split are on the same scale.
Further reading
- Walk Forward Validation: A Practitioner's Complete Guide
- Traders: Stop Live Losses with Volatility Regime Backtesting on Trade4
- No Code Position Sizing Backtests for Quants That Pass Monte Carlo
- Trading Expectancy: Measure and Improve Your Edge
Other strategy guides
- How to backtest a small-cap gap short strategy
- How to backtest a gap-and-go or runner strategy
- How to backtest same-day re-entries
- How to backtest news catalyst strategies
This guide is educational and is not investment advice. Backtest results describe the past and do not guarantee future results.