Skip to content
Wildflower
Join free
Backtesting by hand

Free Trading School · Level 4 · Course 4.1

Hand testing versus computer testing

Lesson 4 of 21 in Backtesting by handModule 1: Why test first

Testing and making it your own · Backtesting by hand

Hand testing versus computer testing

Wildflower Trading School · Lesson 4.1.1.4

Wildflower

There are two ways to run a backtest: by hand, stepping through the chart yourself, or by computer, with a program doing the stepping. By the end of this lesson, you'll know what each one is good at and what each can get wrong. You'll also know how they fit together, and why this course starts by hand.

1 of 8

What you'll learn

  • Test by hand to learn. Step through candles with bar replay and log each row.
  • Find vague rules fast. Hand testing is slow, but unclear wording shows up straight away.
  • Turn exact rules into code. A computer tests years of data in seconds.
  • Check the code. A coding error can look like a real result.
  • Compare hand and computer runs. Testing the same days both ways catches errors in either.

Exercise

  1. Time yourself replaying and logging three sessions of your Level 3 strategy, on TradingView or any other platform.
  2. Work out your average minutes per session, then how many hours 100 sessions would take.
  3. Note any moment you weren't sure what a rule meant.

Quick check

  1. 1. What does a computer test need that a hand test can get by without?

  2. 2. Why is a mistake in testing code dangerous?

  3. 3. Your hand test and a computer test disagree on the same days. What does that tell you?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Opening bar replay” is waiting next time.

Read the full notes

Testing by hand is slow but teaches you the strategy and exposes vague rules; testing by computer is fast but needs exact rules, and a code mistake looks just like a result.

  • By hand: you step through past candles with , decide at each close and log each row. It's slow, but it teaches you the strategy and finds vague rules straight away.
  • By computer: a program applies the rules to years of data in seconds. On TradingView, that's a strategy written in (What Pine Script is), with results in the Strategy Tester; other platforms have their own tools. Every rule must be exact, and a code mistake, such as using a close before the candle has closed (), looks just like a result.
  • They fit together: test by hand first to learn the strategy and tighten the wording; exact rules can then become code; and comparing the same days by hand and by computer catches mistakes in either. More: Systematic vs discretionary trading
  • Hand testing costs time. Made-up numbers: 120 sessions at 8 minutes each is 960 minutes, or 16 hours.

Worked example

Made-up numbers

What hand testing costs in time

Made-up numbers: 120 sessions, about 8 minutes each.

  1. 120 × 8 = 960 minutes
  2. 960 ÷ 60 = 16 hours
  3. At an hour an evening: about three weeks of evenings

A computer takes seconds once the rules are code. By hand, you pay in hours and learn the strategy.

Your turn

Drill

Made-up numbers · 90 sessions · 10 minutes a session

Trading is risky. You can lose money. This lesson explains how testing works. It isn't advice, and a test can't tell you what will happen next.