Home/Free Trading Videos/Articles/How to Backtest a Trading Strategy Before Going Live
GeneralDecember 5, 20268 min read

How to Backtest a Trading Strategy Before Going Live

Build Your Personal Trading Strategy with Robb Reinhold, Maverick Trading, video thumbnail

Watch Build Your Personal Trading Strategy on Maverick Trading's YouTube channel.

Most trading ideas sound convincing until you try to write them down precisely. "Buy strong stocks above support" feels like a strategy, but two traders would apply it differently, so it cannot be tested.

In Build Your Personal Trading Strategy, Robb Reinhold of Maverick Trading sets out a sequence for avoiding that problem (about 1:26 to 2:28): define the strategy and its risk plan, then test it before any money is at risk.

Start with how you actually trade

Robb begins with fit (around 2:33 to 6:15): a strategy has to suit your habits, temperament, timeframe, trading style and risk tolerance. Someone who cannot watch screens during market hours needs different rules from someone who can.

Personality can inform these choices without determining them. Maverick's Trader Personality Tests site offers optional self-reflection; it is not a measure of ability or a trading certification.

Turn every rule into a number

The core instruction (about 6:18 to 7:08) is to write a checklist precise enough that a computer could follow it. Words such as "above," "strong" or "near" must become something measurable.

A sample rule shows the level of detail needed. It is an unvalidated illustration, not a tested strategy or a recommendation:

  • Setup: the daily close is above the highest high of the prior 20 completed daily bars.
  • Entry: the next session's open, not a price chosen afterward.
  • Stop: 2% below the entry price, set before entry. That distance defines 1R, the initial planned risk.
  • Target: 4% above the entry price, a 2R gain.
  • Time exit: if neither is hit, exit at the close of the 10th session after entry.
  • Size: set from a fixed risk budget: shares = risk budget ÷ (entry price × 2%), so a stop-out loses about the budget before costs and gaps.
  • Same-bar touches: if one bar reaches both stop and target and you have no intrabar data, assume the stop filled first.
  • Timeframe: daily bars only.

Using completed bars avoids look-ahead bias: a rule that reads a bar before it closes produces results no trader could achieve.

Trader reviewing stock charts across a desktop screen and tablet
Illustrative photo: checking written rules against historical charts. Stock photography via Envato.

Test in three separate stages

Robb's advice (around 7:49 to 9:42) is to test a large sample across rising, falling and flat markets and know the win/loss rate, profit factor and maximum drawdown. Three separate stages make those numbers more trustworthy:

  1. Development backtest. Build and adjust the rules on one block of historical data.
  2. Validation on unseen data. Run the finished rules, unchanged, on a separate period you did not look at while building them. If results collapse, the rules may be overfit or sensitive to changing conditions; investigate before risking capital.
  3. Forward demo. Trade the rules in real time, where you cannot see the next bar.

Where relevant, include stocks later delisted or collapsed; testing only today's survivors flatters results. Include commissions, spreads and slippage. Instead of tweaking settings until results look perfect, check nearby values such as a 15- or 25-day high; a rule that works at only one setting is fragile.

The lesson also notes (around 10:18 to 10:39) that AI tools need actual price data to test anything; never accept or invent results not run on real data.

Profit factor, expectancy and drawdown

  • Profit factor = gross winning amount ÷ absolute gross losing amount.
  • Expectancy per trade = (win rate × average win) − (loss rate × average loss) − average cost.
  • Maximum drawdown = the largest peak-to-trough decline in account value.

Consider 100 hypothetical trades measured in R, the initial planned risk per trade. Forty 2R winners make 80R; sixty 1R losers cost 60R. Before costs, that is +20R, an expectancy of +0.20R per trade and a profit factor of 80 ÷ 60, about 1.33. Costs of 0.10R per trade cut the result to +10R. At 0.25R per trade it becomes −5R.

Hypothetical 100-trade result in R, before and after costsBar chart with a zero baseline. 100 hypothetical trades: 40 winners at 2R make 80R and 60 losers at 1R cost 60R. The net result before costs is +20R. After costs of 0.10R per trade it is +10R. After costs of 0.25R per trade it is −5R. R is the initial planned risk per trade, held constant, with no compounding. Illustrative arithmetic, not tested performance.Illustrative arithmetic — not tested performance+20R+10R0R−10R+20R+10R−5RGross, no costs0.10R cost/trade0.25R cost/trade100 hypothetical trades · 40 × 2R wins, 60 × 1R losses · constant R
Illustrative arithmetic, not tested performance. 100 hypothetical trades with 40 winners of 2R and 60 losers of 1R net +20R before costs (profit factor about 1.33), +10R after 0.10R of costs per trade, and −5R after 0.25R per trade. R is the initial planned risk; constant R, no compounding.

Costs belong in every backtest: the same entries and exits turn negative on execution alone.

Drawdown hides inside a good final number

Simulated equity curve with a 10% peak-to-trough drawdownSimulated line chart over trade observations 0 to 8 with account balances of $10,000, $10,200, $10,100, $10,500, $10,000, $9,450, $9,800, $10,300 and $10,600. The decline from the $10,500 peak at observation 3 to the $9,450 trough at observation 5 is a 10% drawdown. The later recovery is part of the illustration, not a prediction. Not Maverick Trading performance.Simulated illustration — not Maverick Trading performance$10,800$10,400$10,000$9,600$9,200−10%Peak $10,500Trough $9,450$10,600Start $10,000Drawdown: −$1,050 (−10%)012345678Trade observations (simulated)
Simulated illustration, not Maverick Trading performance. The account rises from $10,000 to a $10,500 peak, falls to a $9,450 trough (a 10% drawdown) and ends at $10,600. The recovery is part of the illustration, not a prediction.

This simulated account ends at $10,600, up 6%. Along the way it fell from a $10,500 peak to $9,450, a 10% drawdown. A high win rate or a final profit can hide declines like this, and future drawdowns can exceed anything in the test history.

Trader reviewing financial charts on two desktop monitors
Illustrative photo: forward-testing rules in real time before going live. Stock photography by tonodiaz / Envato.

Demo and journal before going live

Robb then recommends (about 10:47 to 12:31) trading the rules on a demo account and journaling over a meaningful period. No fixed number of days proves readiness; you need enough trades, in varied conditions, to compare real-time execution with the backtest.

Execution is where backtests are most optimistic. A triggered stop order becomes a market order and can fill below the stop price, while a limit order may not fill at all. Investor.gov's investor bulletin on order types explains both, so model them rather than assuming perfect fills.

The lesson ends (around 12:37 to 14:30) comparing discretionary, automated and assisted trading. Robb prefers manual entries with automated exits, but automated orders still need monitoring for rejections, disconnections and gaps.

Journal fields to reuse

Record these for every demo and live trade:

  • Date, symbol and timeframe
  • Which setup conditions were met
  • Planned entry, stop, target and 1R in dollars
  • Actual fills, commissions and slippage
  • Result in R and in dollars
  • Market condition: rising, falling or flat
  • Rule followed or broken, and why

These fields evaluate the strategy across many trades. To check a single trade before entry, use our five questions to ask before every trade.

Next step: test, then retest

Write the rules, test them on history, validate them on unseen data, demo them, and repeat the cycle whenever a rule changes. Maverick's Qualification Program requires a detailed written trading plan and a demo phase before any funding decision; joining it does not mean automatic funding.

Educational content only, not individualized investment advice. Trading involves risk of loss. All figures and charts above are hypothetical or simulated, are not Maverick Trading performance, and do not predict future results.

Apply to Trade With Maverick