Bulls and Bears
← All articles 7 Steps to Backtest Trading Strategies Manually How-to

7 Steps to Backtest Trading Strategies Manually

Last Updated: November 30, 2026

Quick Summary

To backtest trading strategies manually, write down your entry and exit rules, pick one market and timeframe, then step through past price bars one at a time, asking whether your rules would have triggered a trade and logging each result. This manual backtesting method is slower than automated testing, but it forces you to see every decision you make.

  • Write entry and exit rules in one sentence each before testing anything.
  • Check historical price data for gaps, missing bars and obvious spikes first.
  • Pick one market, one instrument and one timeframe for your first test.
  • Daily charts suit beginners because they have fewer bars to step through.
  • Log every trade, including losers, with date, price, size and exit reason.
Ready to test your first strategy?Bulls and Bears gives you a practice-only terminal with historical data and 26 indicators.
Start Practicing Risk-Free

Table of Contents

How to Backtest Trading Strategies Manually: The Short Answer

To backtest trading strategies manually, you write down your entry and exit rules, pick one market and timeframe, and then step through past price bars one at a time. For each bar, you ask whether your rules would have triggered a trade, and you log the result in a spreadsheet or trade journal. Bulls and Bears gives you a practice-only terminal to study charts without risking real money.

This method takes longer than automated testing, but it forces you to see every decision. That slower pace is the point. Most traders who skip it end up trusting a result they never actually checked.

What You Need Before You Start: Tools, Data and a Written Strategy

You need three things before you test anything. Skip any one of them and your results will be hard to trust.

  • A written strategy. Rules you can state in one sentence each, for entry and exit.
  • Historical price data. Clean bars for the market and timeframe you plan to test. You can learn how to interpret historical market data step by step, from checking data quality to calculating returns.
  • A place to log trades. A spreadsheet or a paper journal works fine.

A quick data check helps. Look for gaps, missing bars, and obvious price spikes that look like errors. Bad data produces bad results, and you will not know why.

Watch out: Do not start with a strategy you only half remember. If you cannot write the rules down, you cannot test them, and you will end up fitting the story to whatever the chart shows.

Step-by-Step: Testing a Strategy Bar by Bar

Manual testing is slow, and that is fine. You are learning how your rules behave, not chasing a fast answer.

Student analyzing a candlestick chart with handwritten notes for manual backtesting process
Student analyzing a candlestick chart with handwritten notes for manual backtesting process

!A student at a desk with a laptop showing a candlestick chart beside a notebook filled with handwritten trade notes

Work through the chart one bar at a time, from the oldest bar forward. Do not look ahead. Each decision should use only the information that existed on that bar.

Step 1: Define Entry and Exit Rules in Writing

Write each rule so a stranger could follow it without asking you questions. "Buy when the trend looks strong" is not a rule. "Buy when the 20-period moving average crosses above the 50-period moving average" is.

Include an exit for winners and losers. A common mistake is writing an entry rule and leaving the exit to instinct. Instinct is exactly what manual testing is meant to remove.

Step 2: Choose Market, Instrument and Timeframe

Pick one market, one instrument, and one timeframe for your first test. Testing many at once makes your log hard to read and your conclusions weak.

Daily charts are a good starting point for beginners. They have fewer bars to step through, so you can finish a test without losing focus.

Step 3: Replay Historical Charts and Log Each Trade

Move forward one bar at a time. If you want to codify indicator-based entry and exit rules, see how to use thinkScript for indicators in a beginner guide. When your entry rule fires, record the date, price, and direction. Then keep moving until your exit rule fires, and record that too.

For each trade, note the profit or loss per share or per contract. Also note the reason you exited. Over time, those reasons tell you more than the total profit does.

Building a Manual Backtesting Spreadsheet Template

A simple spreadsheet is enough for manual backtesting, but the template only works if you fill it consistently and compute the right summary metrics. Use one row per trade and these columns:

Column What to record Example
Trade # Sequence number 14
Entry date Bar where entry rule fired 2026-03-04
Entry price Price at entry 182.40
Exit date Bar where exit rule fired 2026-03-11
Exit price Price at exit 189.10
Direction Long or short Long
Size Shares or contracts 100
Gross P/L (Exit − Entry) × Size for long; reverse for short 670.00
Costs Commission + spread + slippage estimate 12.00
Net P/L Gross P/L − Costs 658.00
Exit reason Which rule closed the trade Moving average cross down
R multiple Net P/L ÷ initial risk 1.8

A Worked Example You Can Reproduce

Suppose your rules are: buy when the 20-period moving average crosses above the 50-period moving average on the daily chart; exit when the 20-period crosses back below the 50-period, or when price closes below the entry bar's low, whichever comes first. You step through the chart one bar at a time and log this trade:

  • Entry date: 2026-03-04; entry price: 182.40; size: 100 shares.
  • Initial stop (entry bar low): 179.90, so initial risk per share = 2.50, total risk = 250.00.
  • Exit date: 2026-03-11; exit price: 189.10; exit reason: moving average cross down.
  • Gross P/L = (189.10 − 182.40) × 100 = 670.00.
  • Costs: commission 2.00 + estimated spread 5.00 + slippage 5.00 = 12.00.
  • Net P/L = 658.00; R multiple = 658.00 ÷ 250.00 = 2.63.

Record every trade this way, including losers. A losing trade with entry 182.40, exit 179.90, and costs 12.00 gives gross −250.00 and net −262.00, or −1.05R. Logging the R multiple alongside the dollar result lets you compare trades of different sizes on the same scale.

Summary Formulas to Add Below the Table

Add a small block of formulas under the trade rows so the sheet updates as you log:

  • Total trades: =COUNTA(A2:A100)
  • Winners: =COUNTIF(J2:J100,">0")
  • Win rate: =Winners / Total trades
  • Net profit: =SUM(J2:J100)
  • Average win: =AVERAGEIF(J2:J100,">0")
  • Average loss: =AVERAGEIF(J2:J100,"<0")
  • Profit factor: =SUMIF(J2:J100,">0") / ABS(SUMIF(J2:J100,"<0"))
  • Expectancy per trade: =(Win rate × Average win) + ((1 − Win rate) × Average loss)
  • Average R: =AVERAGE(L2:L100)

For drawdown, add a running equity column: =Previous equity + Net P/L, then a peak column =MAX($Equity$2:Equity_current), then drawdown =(Equity − Peak) / Peak. The largest negative value in that column is your maximum drawdown. These formulas turn a list of trades into the metrics you actually compare across test runs.

Watch out: If you log gross P/L but forget to subtract costs in the Net P/L column, your profit factor and expectancy will overstate the strategy, small edges disappear quickly once commissions and slippage are included.

How Many Trades to Backtest Before You Trust Results

A handful of trades tells you very little. Ten winning trades in a row can come from luck, and so can ten losing trades in a row.

Many traders aim for a larger sample before drawing conclusions, and they treat early results as a starting point for further testing. A larger number of trades gives a steadier picture of how your rules behave. The right sample size depends on how often your strategy trades, so a strategy that fires once a month needs years of data to produce the same count as one that fires daily.

Keep testing until the results stop changing much as you add trades. For a safe, step-by-step path to readiness before risking money, see how to learn day trading safely. If one bad stretch flips your conclusion, the strategy is not yet stable.

Avoiding Bias and Unrealistic Assumptions When Testing

Bias is the biggest risk in manual backtesting. You can see the future on a chart, and that makes it easy to pick entries that only look good in hindsight. The fix is not willpower; it is a written protocol you follow on every test.

A Reproducible Testing Protocol

Before you look at a single bar, do these four things and write them down with a date:

  1. Freeze the rules. Write entry, exit, stop, and position-sizing rules in one sentence each. Save the document and do not edit it during the test. If you must change a rule, stop the test, note the change and the date, and restart from the beginning.
  2. Hide future candles. Use a chart replay tool that reveals one bar at a time, or cover the right side of the chart with a sheet of paper. Your decision on each bar must use only bars to the left of the current one. Do not scroll ahead to "check" what happened.
  3. Fix the sample period in advance. Choose the start and end dates before testing, and do not extend or shorten them after seeing results. If you want to test a second period, treat it as a separate test with its own written rules.
  4. Document every exception. If you skip a trade the rules would have taken, or take one they would not have, write down why in a separate exceptions log. A pattern of exceptions is a signal that your rules are ambiguous, not that you were unlucky.

Common Biases and How They Show Up

  • Look-ahead bias. Using a bar's closing price to decide an entry made on that same bar. Decide entries on the close of the prior bar and execute at the next bar's open, or state clearly that you enter at the close and accept the assumption.
  • Hindsight selection. Choosing the market, timeframe, or date range after seeing which one worked. Fix all three before testing.
  • Cherry-picking periods. Testing only the months where the strategy worked. Include the full pre-chosen period, including flat and losing stretches.
  • Rule drift. Adjusting settings after a loss. The freeze-and-restart rule above prevents this.
  • Survivorship bias. Testing only instruments that still exist today. If your data source excludes delisted names, note that limitation in your results.

Realistic Execution Assumptions

A backtest that ignores costs is a story, not evidence. To judge whether tested results will hold in live markets, read whether paper trading is realistic for real market conditions. Build these assumptions into every logged trade:

  • Commission. Use your broker's actual per-share or per-contract rate. For a 100-share trade at $0.005 per share, that is $0.50 each way, or $1.00 round trip.
  • Spread. Estimate the bid-ask spread at the time of day you would trade. A liquid large-cap might be a penny; a small-cap or a thin forex pair can be several times that. Subtract half the spread on entry and half on exit if you assume mid-price fills.
  • Slippage. Assume your fill is worse than the signal price by a small amount, especially on market orders and volatile bars. A common practice is to add one tick or a fixed percentage per side and see how much the edge shrinks.
  • Missed fills. If your rule requires a limit order at a price the market only touched briefly, assume it may not have filled. Log skipped trades in the exceptions log rather than assuming perfect fills.
  • Gaps and session hours. Overnight gaps can blow through stops. For forex and futures, respect session boundaries and rollover; for stocks, decide whether you hold through earnings and gaps or exit before them.

A practical check: run the same trade log twice, once with zero costs and once with your realistic estimates. If the strategy is only profitable with zero costs, it is not profitable in practice. Most practitioners find that costs and slippage erase a meaningful share of a small edge, which is why the cost-adjusted column matters more than the gross one.

Out-of-Sample and Forward Checks

After you finish the in-sample test, run the same frozen rules on a period you did not use to design the strategy. If results hold up roughly, you have more confidence; if they collapse, treat the in-sample result as curve-fit. Paper trading or forward testing is the next step, because it shows how the strategy behaves in real time with real spreads and fills, something a historical replay cannot fully capture. Treat a backtest as one piece of evidence, not proof.

How to Backtest a Trading Strategy for Free, and Your Next Step

You can backtest a strategy for free with a spreadsheet, historical bars, and patience. Many traders also use free charting tools to replay historical charts. Bulls and Bears is built for that same kind of practice, with live candlesticks, historical data, and 26 community indicators, and no buy or sell buttons. You can annotate charts and customize studies as you test.

Start with one written strategy, one market, and a spreadsheet with 20 to 30 logged trades. Then compare what you find against what you expected. Sign up for Bulls and Bears to practice reading charts in a risk-free environment.


Frequently Asked Questions

Can ChatGPT backtest a trading strategy?

ChatGPT can help you structure rules, write a spreadsheet formula or check your logic, but it cannot reliably run a backtest on its own. It does not have access to clean, timestamped historical price data for your chosen market, and it can produce confident-sounding numbers that were never calculated from real bars. A safer approach is to use it to draft your rule list and trade log columns, then do the bar-by-bar testing yourself on a charting platform so every entry and exit is traceable to a specific candle.

Is there a free way to backtest my trading strategies?

Yes. You can backtest manually on a free charting account by scrolling back through historical candles, marking each signal and recording the result in a spreadsheet. Check the current access terms on each provider's website, since limits on history depth and features change over time.

How many trades should you backtest before trusting a strategy?

There is no universal number, but a strategy with only a handful of trades tells you very little, because a few lucky or unlucky outcomes can dominate the result. Many traders aim for several dozen trades across different market conditions before drawing any conclusion, and they treat results from a single trending period with caution. Track how your win rate and expectancy hold up as the sample grows, and be most cautious when the strategy was designed by looking at the same data you are testing on.

What information should you record when manually backtesting a strategy?

Record the date and time of each signal, the market and timeframe, the entry price, stop-loss and take-profit levels, the exit price and reason, the position size, and the result in both currency and risk-reward multiples. Add a note on the market conditions at the time, such as trending or ranging. Including estimated commission and spread for each trade keeps the results realistic, and a consistent log lets you calculate win rate, average gain, average loss, profit factor and maximum drawdown later.

GoogleAdd bullsandbears.gentrylegacy.com as a preferred source on Google →