How to paper trade a strategy, step by step

By Oalgo · Last reviewed

To paper trade a strategy, run its rules with simulated funds on prices the rules were not tuned on, and record every trade they make. The steps below keep the order right, so live prices come last, after the past prices have been checked.

What are the steps?

#
  • Step 1: write the rule as one sentence, saying what you look at, when you enter and when you exit.
  • Step 2: backtest it on past prices, to check that the rule does what you meant. A backtest lists each trade it would have made.
  • Step 3: check the rule for overfitting. A rule tuned to the exact past prices can look right there and fail on new prices.
  • Step 4: forward test it on live prices, with simulated funds, for a period you chose before you started.
  • Step 5: compare the forward test with the backtest, then decide whether to go further.
Numbered ladder, from the first line down: 1 Write the rule, 2 Backtest on past prices, 3 Check for overfitting, 4 Forward test on live prices, 5 Decide. A note beside step 4 reads 'new prices only'.1Write the rule2Backtest on past prices3Check for overfitting4Forward test on live pricesnew prices only5Decide
The order of the steps. The forward test comes after the backtest, never before it.

Why does the order matter?

#

The past-price steps come first because they are quick to repeat. A backtest takes minutes, so a rule that fails on past prices can be changed and run again at little cost. A forward test takes weeks. Start it only with a rule that has already passed the earlier steps, or the weeks go on a rule you were going to change anyway. Every line of the record then maps to one step, so a reader can follow it without asking what was meant.

A common mistake

#

Changing the rule after the backtest, then forward testing the changed version as if it were the original, is the usual error. The forward test then checks a rule nobody wrote down first. Keep the written rule fixed, and treat any change as a new rule with its own count.

What does a worked example look like?

#

The rule below enters long on a 1-hour candle close above a 50-candle average, with a target 3 percent above entry. The backtest covers the past 6 months. Step 3 finds the rule has one setting, so there is nothing to tune. Step 4 starts the forward test on a Monday and runs it for 4 weeks. In week 2 the record is compared with the backtest's entries for those weeks.

A second example: the four-week plan

#
WeekWhat you checkWhat you write down
1Each recorded entry against the rule, one by oneThe count, and any entry that does not match
2The forward test entries against the backtest for the same weeksEntries that appear in only one of the two lists, with the date
3Whether the rule has changed. It must not.Any change, which makes the test a new one
4The full comparison, then the decision on whether to go furtherThe decision and its reason, written before Go Live

What can a paper test not show?

#

A forward test covers only the weeks it ran. Real fills, with their slippage and venue fees, sit outside what a simulation measures, so the record is one input to your decision and not the decision itself.

Oalgo's sequence follows these steps. You write the idea in your own words, the AI builds rules you check, the backtest and forward test run on simulated funds, and only then, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read next