What is backtesting?
Backtesting applies a trading rule to historical prices and records the simulated outcomes.
The Edge Filter ranks 22 million setups, and its results rest on 3.3 million past breakouts. Most backtests look better than the trading that follows. Here is what we do so ours does not: every stock that existed, including the ones that died, data we locked away before building anything, and no information from after the moment a trade could have filled.
A backtest is easy to make look good. Test only the stocks that are still around today, and the failures quietly disappear. Tune the rules until they fit the past, and they learn the noise of that particular history. Let a single fact from the future slip into a decision, and the results become impossible to trade.
These are survivor bias, overfitting and look-ahead bias. Each can turn an ordinary method into an impressive chart. The introductory backtesting guide explains them with simple examples.
This guide covers the guardrails we built against each one. None of them makes a result certain. Together, they make it much harder for us to fool ourselves, and therefore you.
Picture a breakout in a company that was later delisted. If the test starts from today’s list of stocks, that trade never appears. Repeat this across thousands of failed companies and the record drifts upward without anyone intending it.
Our research starts from the stocks that were actually tradable at the time. At each month end since 2004, we take the most actively traded U.S. stocks of that moment. That list covers 10,011 stocks, and more than half of them no longer trade today. Their full histories stay in the tests, up to their last day of trading.
We then widened the net. Every other common stock we hold price history for joins the test, together with a random sample of 1,000 small stocks that have since disappeared. Each sampled one stands in for roughly six others like it. Altogether, the research covers about 16,000 stocks, and the 3.3 million past breakouts in our results include the breakouts in companies that later died.
A listing that later reappeared under a recycled ticker is treated as a separate company. One company’s collapse never merges into another company’s chart.
Before the research began, the stocks were split once, at random: 80% for research and 20% held out. The draw used a fixed seed and has never been regenerated or edited. Every test since has used exactly the same stocks.
The split is by stock, not by trade. A single stock produces many similar-looking patterns that share the same later price moves. Splitting at the trade level would let a stock’s future leak from one side into the other. Listed and delisted stocks were split separately, so the held-out fifth carries its fair share of failures.
Ideas are tried, compared and confirmed only on the research stocks. The held-out stocks are reserved for the final check of a decision, never for adjustments along the way. Every look at them is counted and recorded in our research journal. The results for half of the held-out stocks have still never been read.
We also guard against lucky winners. Testing many versions of a rule produces some that look good by chance. Each version is reported with a range from resampling the stocks, and a range that crosses zero is treated as noise.
Holding stocks apart is not enough on its own, because markets change over time. A rule tuned on every year can still memorize its own era. So we also sealed time: every trade that entered on or after October 12, 2024 was kept out of building and tuning the rules.
Those two years were the closest thing to live trading we had: recent markets the rules had never seen. A candidate rule faced them once, at the end, together with the held-out stocks. A rule that fell apart there did not ship, however good its earlier history looked.
Look-ahead bias is the most damaging mistake, because it hides well. A single number taken from the day of the trade, even one that looks harmless, can make a test look brilliant while describing something no trader could have known in time.
Our rule is simple: every fact about a pattern must be known before its order could fill. The grade, the tier and the estimates are computed the evening before. They use only prices up to that evening’s close. The fill day’s own candle is never used in the decision.
The pattern itself is held to the same standard. A pattern counts from the first evening its lines could actually be drawn. Each turning point it rests on must already be confirmed by later candles at that time. A shape that only becomes visible after the breakout cannot enter the record at the start of the move.
Patterns that failed stay in the record. The test does not keep only the shapes that worked out. We check this by replaying the scan evening by evening on test stocks and comparing what it found each day with the stored record.
The trade plan is also fixed in advance. The entry, the stop under the recent lows and the Est. win level are set before the fill, and hindsight never moves them. Each input is audited for the date it became known. An input that fails that check is removed and the model is retrained, rather than patched.
Every Edge Filter grade is made the evening before, from information known then.
A model trained on the whole history and then tested on that same history has already seen the answers. We avoid this with a walk-forward method. The trades of any given year are graded by models trained only on trades that closed before January 1 of that year.
So 2015 is graded by a model that knows nothing after 2014. 2025 is graded by one that stops at the end of 2024. Every graded year in the record is a year its model never saw.
The live grade follows the same calendar. It is refit once a year, each January, on trades that have closed by then. Within a year, the method does not change and the model does not learn from its own recent results.
The Edge Filter’s exact recipe is proprietary. It ranks 22 million setups, and the Edge Filter film shows ten of the ingredients it considers. Every one of them is measured before the fill:
A simulated order fills only on a day the price actually trades through it. If the stock was already past the order at the previous close, the trade does not happen. A trade never receives a better price than the market traded.
Daily candles leave one question open. When several setups trigger on the same day and the account has room for only some, which came first? Daily data cannot say. Rather than pick a favorable order, we run 25 simulated accounts, each with a different same-day order. The charts show the full range across them, not the best run.
Each account uses the same position and liquidity limits as live trading. Each one is labeled as a simulation wherever it appears.
A strategy that only works before costs does not work. The public Autopilot record models liquidity- and size-dependent costs at entry and exit: a larger order in a thinner stock pays more. Open positions are valued at each day’s close, so losses inside open trades show up in the account curve.
Some costs remain outside the model. Commissions, short-borrow fees and taxes are not charged separately, and a real fill can differ from the modeled one. Pattern and support-and-resistance setup cards report trade results before brokerage costs.
The support and resistance records belong to complete, named setups, not to every line on a chart. At each historical decision date, the test rebuilds the automatic lines from the prices available on that date. It then checks whether the full setup qualified.
Stops on these setups are confirmed by a close on the setup’s own interval, weekly or monthly. The support and resistance guide introduces the chart concepts behind those rules.
Pattern and support-and-resistance records update through the nightly process. The table below shows the latest completed pattern results. Opening a page reads the stored record; it never runs a new backtest. The metrics guide explains how to read each column.
| Pattern | Usual break | Win rate | Avg return | Backtested trades | Fresh (45d) |
|---|---|---|---|---|---|
| Bullish pennant | Up | 54.5% | +3.6% | 6,817 | 86 |
| Bearish pennant | Down | — | — | — | 0 |
| Ascending triangle | Up | 48.9% | +2.6% | 1,753 | 19 |
| Descending triangle | Down | 48.9% | +2.6% | 1,753 | 6 |
| Symmetrical triangle | Either way | 48.9% | +2.6% | 1,753 | 80 |
| Falling wedge | Up | 44.3% | +2.9% | 1,149 | 60 |
| Rising wedge | Down | 52.0% | +1.6% | 390 | 9 |
Historical results of a simulated strategy, refreshed nightly. Triangle rows show their usual break direction's family; each guide breaks out both directions.
These guardrails remove the most common ways a backtest flatters itself. They cannot remove uncertainty. A simulation describes how stated rules would have behaved on past prices. It is not a forecast and not a promise.
Daily candles hide the order of prices within a day, which is why the record shows a range of accounts. Real fills, costs and market impact can differ from the model. Markets change, and an edge that held for years can weaken.
The held-out data also has a shelf life. Once a rule passes its final check, the yearly refit learns from the trades that have since closed, including those on held-out stocks. Each new year of live trading is the next honest test, and we report it as it arrives.
Treat every figure as a probability, and size your positions accordingly.
The Edge Filter ranks each night’s setups by these rules.
Yes. The research starts from the most actively traded stocks at each month end since 2004, including the ones that no longer trade. More than half of that list has since disappeared, and their histories stay in the tests up to their last trading day. A random sample of 1,000 small stocks that died is added on top.
A random fifth of stocks was locked away before any rule was built, and every trade from October 12, 2024 onward was sealed as well. Rules are developed on the rest and checked on the locked data once, at the end. Every look is counted, and the results for half of the held-out stocks have never been read.
No. The grade is computed the evening before, from prices up to that evening’s close. The fill day’s own candle is never used, and each input is audited for the date it became known.
Its exact recipe is proprietary. The ingredients shown in the Edge Filter film include the record of similar setups, relative volume, market and sector trend, the stock’s position against its own averages, distance from its 52-week high and low, momentum, volatility, days to the pattern’s apex, the gap between its lines, and reward to risk.
Walk-forward grading. Each year’s trades are graded by models trained only on trades that closed before January 1 of that year. The live grade is refit once a year, each January.
Daily data cannot say which of several same-day setups filled first. Each of the 25 simulated accounts takes a different order, and the charts show the full range rather than the best one.
The public Autopilot record models entry and exit costs that rise with order size and fall with liquidity. Commissions, short-borrow fees and taxes are not charged separately. Setup cards report trade results before brokerage costs.
No. It describes how fixed rules behaved on past prices under stated assumptions. Real fills, costs and market conditions can differ.
How similar setups played out, machine-learned estimates of win rate and average return, and every ticker’s full track record, so you can avoid tickers that keep failing.
Then $15 a month · Cancel in one click
Backtesting applies a trading rule to historical prices and records the simulated outcomes.
A track record describes trade outcomes, account growth and the losses along the way.
A trade’s entry, safety exit and target let you compare its planned loss with its potential gain.
The Support trendlines strategy uses a planned entry above a qualifying support line on weekly or monthly charts.
Educational content, not investment advice. Backtest statistics are historical results of a simulated strategy. Publication timing varies by record; the numbers describe the past, not the next trade.