# How many trades do you need for a backtest to be valid? > 20 trades prove nothing, 100 start to mean something. How to judge sample size, why variety matters as much as count, and what to do when your setup is rare. - Source: https://setupbook.io/blog/how-many-trades-backtest-valid - Site: SetupBook - Language: en - Published: 2026-11-21 - Tags: backtest, statistics - tr: https://setupbook.io/tr/blog/gecerli-backtest-icin-kac-islem-gerekir - es: https://setupbook.io/es/blog/cuantas-operaciones-backtest-valido - pt: https://setupbook.io/pt/blog/quantos-trades-para-um-backtest-valido - id: https://setupbook.io/id/blog/berapa-trade-untuk-backtest-yang-valid - vi: https://setupbook.io/vi/blog/can-bao-nhieu-lenh-cho-mot-backtest-hop-le - de: https://setupbook.io/de/blog/wie-viele-trades-fuer-validen-backtest - fr: https://setupbook.io/fr/blog/combien-de-trades-pour-un-backtest-valide - ar: https://setupbook.io/ar/blog/how-many-trades-backtest-valid You backtested a setup and it won 7 of 10 trades. Is that an edge? What about 14 of 20? 35 of 50? The question "how many trades is enough?" is one of the most common in trading communities, and the honest answer is: more than you want, and spread over more conditions than you think. ## Why a small sample lies Flip a fair coin 10 times. Getting 7 heads or more happens about one time in six. Getting 70% in 20 flips is rarer, but still happens in around one run in ten. A strategy with no edge at all will regularly show a "70% win rate" over a short sample, and trading is noisier than a coin because wins and losses are not the same size. The same logic works in reverse. A genuinely profitable setup will often show a losing month. Neither a short win nor a short loss tells you much. A **sample** is only useful when it is large enough that luck averages out. ## Rules of thumb These are practical guidelines, not mathematical proof: | Trades in the sample | What you can say | |---|---| | Under 30 | Almost nothing. Mostly noise | | 30 to 60 | A hint. Worth continuing, not worth sizing up | | 100 | A usable first answer for one setup | | 200 or more | Reasonably solid, if conditions were varied | | 500 or more | Strong, and enough to look at splits (by session, by direction) | The count is *per setup*. A hundred trades that mix three different setups says little about any of them. ## Variety matters as much as count A hundred trades from a single strong trend are not a hundred independent observations: they are one market condition seen a hundred times. For a sample to mean something it should include: - **Trending and ranging markets.** Many setups are one or the other. - **Quiet and volatile periods.** Volatility changes stop distance and fill quality. - **Different sessions**, if you trade more than one. - **Both directions**, long and short. - **At least one bad stretch** for your style. If everything you tested came from the last two months, you tested one regime. ## How to read the result, not only the count With a decent sample, do not stop at win rate. Read together: - **Expectancy in R.** The average result per trade. This is the number that must be positive after costs. - **Profit factor.** Gross profit divided by gross loss. - **Maximum drawdown and longest losing streak.** What you will have to sit through. - **Spread of results.** If one 8R trade carries the entire sample, you have one lucky trade, not an edge. Remove the best trade and see if the result survives. See [win rate, profit factor, expectancy and R-multiple](https://setupbook.io/blog/win-rate-profit-factor-expectancy-r-multiple) for how each is calculated. **Skip the spreadsheet.** SetupBook's backtest sessions compute trades, win rate, expectancy, profit factor, net, max drawdown and the equity line for you, and split them by hour, setup and mistake. Create a free account for the journal, add Pro for backtest sessions. [Sign up free](/signup "cta") ## When your setup is rare Some setups appear only a few times a month. A hundred trades can then mean years of data. Options: 1. **Test over a longer history.** Years of daily or hourly candles, if the setup exists on those timeframes. 2. **Test across related markets.** If the logic is general (a breakout of the opening range), try it on several symbols. Equal results on unrelated markets are more convincing than a great result on one. 3. **Accept a lower confidence** and size accordingly. A 40-trade sample is a reason to trade small, not a reason to trade big. 4. **Combine the backtest with live trades.** Every real trade of the same setup adds to the sample. A journal that tags the setup on each trade lets you add them to the count. ## The "split sample" check When you have enough trades, split them in two: first half and second half, or odd and even. If both halves show a positive expectancy, the result is steadier than if only one does. If one half carries everything, the sample is telling you the setup depends on a particular period. ## Do not stop early either way Two mistakes mirror each other. Stopping at 20 winning trades and going live is overconfidence. Dropping a setup after 15 losing ones is the same error pointing the other way. Decide the sample size *before* you start, write it down, and read the result when you reach it. ## How to collect the sample in SetupBook Create a session with a symbol, start date, timeframe, starting balance, the risk per trade and the costs. Step through the candles with the future hidden, place orders and manage stops, and the Stats tab sums up the session as it grows. Tie it to a setup from your playbook to compare its expectancy against the same setup in your real journal. Practice trades stay in their session and never touch your live journal or analytics. Backtest sessions are part of Pro; the journal, the analysis and the reports are free. [Sign up free](/signup "cta") ## Frequently asked questions ### Is 30 trades enough for a backtest? It is the least you can use to spot a disaster, not enough to prove an edge. Use it as a checkpoint to decide whether to continue. ### Is 100 trades enough? For one setup tested across varied conditions, it is a reasonable first answer. Size small and keep collecting. ### Does the number of trades matter more than the time period? Both matter. A hundred trades in a month of one market condition is weaker than a hundred trades across a year with trends and ranges. ### What if my backtest has only 10 or 15 trades? Treat it as practice, not evidence. Keep going until you reach your target sample. ### Do live trades count toward the sample? Yes, if they follow the same rules. That is why tagging the setup on each live trade is useful: your real trades extend the test.