Skip to content
Research / Education / Trading journal

TA · Intermediate · Part 18 of 18

Testing a setup by hand: sample size, the record, and what works means

Before a setup is trusted with money it is trusted with a notebook. How to replay a chart candle by candle, record every trade the rules would have taken, and know how many trades it takes before the numbers mean much.

InnoMP Research · Education Desk Published 22 Sept 2026 · Updated 23 Sept 2026 9 min read
InnoMP Research cover art — a notebook before money
In short

Testing a setup by hand means replaying a chart candle by candle, applying the written rules exactly, and recording every trade they would have taken before any money is risked. The record gives a win rate, an average win and loss, an expectancy and the worst run of losses. The numbers mean something only once the sample is large enough that a few trades cannot move them, and only if losers were recorded as carefully as winners. A forward test on a demo account is the same record, kept in real time.

A manual backtest replays a chart candle by candle, applies a setup’s written rules exactly, and records every trade they would have taken — before any money is risked. The record is the setup’s first evidence, and the size of the record decides how much it is worth.

This is the last part of the level, and it is where the other seventeen are checked. A setup that has been written down in the form of Part 15 can be tested; the test is slow, unglamorous, and the only thing that separates a setup from an opinion about one.

The replay

The method is simple and the discipline is not. Cover the chart. Reveal one candle. Ask whether the setup’s rules fire — the context stack, the trigger — and if they do, write the trade down: entry, stop, target, size in R. Only then reveal the next candle, and follow the trade to its stop or target as the candles arrive.

Replaying a chart with the curtain drawn A price line runs from the left edge to a point partway across, where a shaded curtain covers the rest of the chart, labelled not yet. Notes say only what was known then, and one candle at a time — decide, then reveal. only what was known thennot yetone candle at a time · decide, then reveal InnoMP Research
Everything to the right of the curtain does not exist yet. The decision is written before the curtain moves, which is the only way the record measures the rules rather than the replayer.

The thing the curtain prevents is look-ahead bias: letting the next candle into a decision that is supposed to be made before it. Without the curtain, every trigger that led to a winner looks obviously valid and every one that led to a loser looks obviously marginal, and the record ends up measuring hindsight — the bias Foundations described, with a scrollbar. Platforms have replay tools that step candles forward; a hand over the screen works too. What does not work is scrolling.

The record

One row per instance the rules fired. Not one row per trade taken — per instance the rules fired, including the retests that never filled from Part 16 and the trades that lost.

One row per instance the rules fired A ledger of six rows, each with a date and trigger on the left and a result in R on the right: plus 2.1, minus 1.0, minus 1.0, plus 0.4, minus 1.0, plus 2.8. A note says losers recorded as carefully as winners. the record03 Sep · retest+2.1R05 Sep · retest−1.0R09 Sep · retest−1.0R12 Sep · retest+0.4R16 Sep · retest−1.0R18 Sep · retest+2.8Rlosers recorded as carefully as winners InnoMP Research
Six firings, three losers. The losers are the record; a notebook that only has the winners in it is a highlight reel, and its win rate is a fiction.
ColumnWhat goes in itWhy
Date and hourWhen the rules firedSession analysis later — Part 8
ContextWhich filters were true, and how many reasonsLets the setup be split by confluence count afterward
TriggerWhich event, at what priceConfirms the same trigger was used every time
Stop and targetPrices, and the R the target impliedExpectancy needs the planned R, not the outcome
FilledYes, or no and whyThe retest entry’s hidden cost lives here
ResultIn R, at the stop or target, or a scratchThe number everything else is computed from

From the rows come four numbers: win rate, average win in R, average loss in R, and their combination, the expectancy per trade. And one more that is not an average: the longest run of consecutive losses.

How big the sample has to be

A win rate from a small record is not a measurement. It is a guess with a number attached, and the width of the guess is arithmetic.

How wide the win-rate estimate is, by sample size Three horizontal bars centred on a vertical axis, one per sample size. Thirty trades: a wide bar, plus or minus 18 points. One hundred trades: narrower, plus or minus 10. Three hundred trades: narrowest, plus or minus 6. Notes say a true fifty percent win rate, measured, and 95 percent interval, the record's number plus or minus this. a true 50% win rate, measured30 trades±18 points100 trades±10 points300 trades±6 points95% interval · the record’s number ± this InnoMP Research
A setup that truly wins half the time can show anything from 32% to 68% after thirty trades. The bar narrows with the square root of the sample, so halving it takes four times the trades.

The figures come from the standard interval for a proportion — the estimate plus or minus about two standard errors, where the standard error is the square root of p(1−p)/n. At thirty trades and a true rate of one half, that is roughly eighteen points either way; at a hundred, ten; at three hundred, six. The interval shrinks with the square root of the sample, which is why the second hundred trades help less than the first and the third less again.

Two consequences. A setup that fires three times a week needs about a year of replayed charts to reach a sample whose win rate can be read to within ten points. And a difference of a few points between two versions of a setup — two triggers, two management rules from Part 17 — is not a difference at all until the samples are large enough to resolve it. Overconfidence and luck in Foundations was this arithmetic seen from the psychological side.

Key takeaway A record of thirty trades cannot tell a 45% setup from a 55% one, and those are different businesses. The sample is not a formality before trusting the numbers. It is what makes them numbers.

The losing run

Averages hide the thing that ends accounts. A setup with a 45% win rate will, over a few hundred trades, produce runs of six, seven, eight losses in a row — not as a failure, but as ordinary variance. Reading a drawdown in Foundations gave the arithmetic; the record gives the observed run.

The longest losing run in the record Twenty-four small circles in a row representing consecutive trade outcomes, green for wins and red for losses. Six consecutive red circles in the middle are highlighted by a shaded band. Notes say six losses in a row is the record's floor for drawdown, and size for this, not for the average. 24 trades, in ordersix losses in a row: the record’s floor for drawdownsize for this, not for the average InnoMP Research
A perfectly ordinary sequence from a setup that wins about 45% of the time. The six in the band are why size is chosen against the worst run, not the average trade.

The longest run in the record is a floor, not a ceiling: a larger sample will contain a longer one. Six in a row at 1% each is a 6% drawdown before the recovery arithmetic starts; the psychology part said what that feels like, and the size the setup is traded at has to be one the trader can hold through a run somewhat longer than the record’s worst. That decision is made here, with the record, not in the seventh loss.

What the replay hides

A backtest measures the rules. It does not measure the trader, the spread, or the clock — and all three are in the live result.

What hindsight hides Two columns. Left, replay: every trigger seen, fills at the price, no news and no fear, no spread widening — the notebook. Right, forward test: triggers missed, slippage and spread, news candles, hesitation — the live notebook. Replayevery trigger seenfills at the priceno news, no fearno spread wideningthe notebookForward testtriggers missedslippage, spreadnews candleshesitationlive notebook InnoMP Research
The replay is the rules under ideal conditions. The forward test is the same rules with a person, a broker and a calendar attached — and its numbers are the ones the account will see.

A forward test keeps the same record in real time on a demo account: the same rows, the same columns, with the trades taken as the candles actually close. It is slow — a setup that fires three times a week yields a dozen rows a month — and it is where the replay’s optimism is corrected. Triggers fire while the trader is away. The rollover widens the spread across a stop. A news candle does in one minute what the replay showed happening over an hour. And the hesitation Foundations described turns a valid trigger into a late entry that the backtest never had to price.

The two records are read together. Where the forward test’s numbers track the backtest’s, the setup has survived contact with reality. Where they diverge, the gap is the trader, the costs or the clock — and that gap is the next thing to work on, because the rules were already fine.

What “works” means

A setup works when three things are true in the record at once, and not before.

What works means Three stacked bands. One, expectancy: positive expectancy after costs. Two, sample: over a sample that can bear the claim. Three, drawdown: a losing run you would sit through at the intended size. A note says all three, or it is not yet known. 1 · expectancypositive after spread and swap2 · sampleenough trades to bear the claim3 · drawdowna losing run you would sit throughall three, or it is not yet known InnoMP Research
Positive on paper, over enough trades, with a worst run the trader can survive. A setup missing any one of the three is not a setup that fails — it is a setup that is not yet known.

Positive expectancy after costs. The average trade, in R, is above zero once spread and swap have been taken out — which for a setup with a small edge on a short timeframe is where most of the edge goes.

A sample that can bear it. Large enough that the interval around the win rate does not include the break-even rate for the setup’s R. A record whose interval straddles zero expectancy has not yet said anything.

A survivable worst run. The longest losing run, at the intended size, produces a drawdown the trader will sit through without changing the rules. The process-versus-outcome part of Foundations was about exactly this: a setup that is abandoned in its ordinary variance has no expectancy at all, whatever the record says.

Where the level ends

Eighteen parts. The first group read one market on three charts in a fixed order, and settled who decides when the charts disagree. The second asked who was there — what tick volume measures, and where it speaks loudest. The third read the clock: the day’s three opens, the levels each day leaves behind, and the server that decides what a day is. The fourth looked sideways, at what moves together, the leg every major shares, and the arithmetic of positions that overlap. And this group put the pieces on a card, priced the entry, priced the management, and put the card through a notebook before an account.

That notebook is where the Intermediate level hands over. Everything it produces — win rate, R, the worst run, the gap between replay and forward test — is a number about a discretionary process. The Professional level is about what to do with those numbers: validating an edge statistically, reading volatility regimes and microstructure, and turning a process that works into one that can be run.

Continue with Level 3: Technical Analysis: Professional — it starts with how a price is actually made. · Return to the series index

Key facts
  • A manual backtest applies the written rules to past candles one at a time, without seeing what comes next.
  • The record holds, for every trade: date, context, trigger, stop, target, and the result in R — including the setups that fired and were not filled.
  • A win rate measured over 30 trades can sit around 18 percentage points from the setup's true rate; over 300 trades, about 6.
  • The longest losing run in the record is a lower bound on the drawdown the setup will produce.
  • A forward test on a demo account is the same record kept in real time, and it catches what the replay hides.

Frequently asked questions

How do I backtest a trading setup by hand?

Cover the chart so only past candles are visible, step forward one candle at a time, and at each step ask whether the setup's written rules fire — context, trigger, invalidation, target. When they do, record the trade before revealing the next candle, then follow it to the stop or the target and record the result in R. Every instance counts, including the ones that lose and the ones that never fill.

How many trades do I need before the results mean anything?

More than feels necessary. The uncertainty in a measured win rate shrinks with the square root of the sample: around 30 trades a true 50% rate can read anywhere from the low thirties to the high sixties; around 300 it is pinned within about six points. A setup that fires a few times a week takes a year of charts to reach a sample that can be read.

What is look-ahead bias?

Letting knowledge of later candles into a decision that is supposed to be made earlier — seeing that the break ran before deciding whether the setup would have taken it. It is the reason the replay is done with the chart covered and the decision written down before the next candle is shown. A replay that scrolls freely is not a test.

What is the difference between a backtest and a forward test?

A backtest replays the past; a forward test keeps the same record in real time on a demo account. The forward test is slower and catches everything the replay hides: triggers missed while away from the screen, spreads widening at the rollover, slippage, news candles, and the hesitation that turns a valid trigger into a late entry.

When does a setup work?

When three things are true at once in the record: the expectancy is positive after spread and swap; the sample is large enough that a few trades cannot flip the sign; and the longest losing run is one the trader could actually sit through at the intended size. A setup with a positive expectancy and an unsurvivable drawdown does not work for that trader.

Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods — Confidence intervals for a binomial proportion: p̂ ± z·√(p̂(1−p̂)/n)itl.nist.gov
InnoMP Research · Education Desk

Trading education from first principles — position sizing, risk, market structure and the habits that keep accounts alive. Written for someone who has never opened a chart, with a diagram at every step.

Published 22 Sept 2026 · Updated 23 Sept 2026

Disclaimer: This content is provided for general informational purposes only and does not constitute investment advice, an offer, or a solicitation to buy or sell any financial instrument. It has been prepared without regard to your individual financial circumstances or objectives. Trading CFDs involves a high risk of loss.

Related notes

InnoMP Research cover art — a number and its doubt
Trading journal

Expectancy with error bars: how sure the record lets you be

A record says +0.25R per trade. The question is how far from that the truth could be. How to put a standard error and a confidence interval on expectancy, and how many trades it takes to tell an edge from zero.

9 min read