Skip to the article
Strategy & Automation

From idea to plan: testing a strategy before it costs you money

5 min read

Most trading ideas begin as a feeling: “this kind of stock tends to bounce here.” Some of those feelings are useful. Many are not. The only way to tell the difference without paying for it is to turn the idea into rules, test the rules honestly, and practise them on paper before real money is involved.

Write the rules down

A strategy is not a vague preference. It is a set of rules clear enough that two people following them would take the same trades. At a minimum, write down five things:

  1. The universe: which markets or stocks the strategy trades, and which it ignores.
  2. The entry: exactly what has to happen before you buy or sell.
  3. The exit: where you take profit, where you cut the loss, and whether there is a time limit.
  4. The size: how much you risk per trade, worked out from the stop.
  5. The conditions: when the strategy should not trade at all, for example around earnings or in a fragile market.

Writing it down does two things. It makes the idea testable, and it protects you from changing the rules in the middle of a trade because you feel nervous or excited.

Back-testing: what it can and cannot tell you

A back-test applies your rules to past data to see how they would have behaved. Done carefully, it can show whether an idea is worth more study, how deep its losing stretches have been, and how often it trades. It cannot show what will happen next. Markets change, and a strategy that worked in one period can stop working in another.

Treat a back-test as a filter. It is good at rejecting bad ideas quickly. It is much weaker at confirming good ones.

The common traps

Back-tests go wrong in a few well-known ways. Knowing them is most of the defence.

  • Look-ahead bias. The test uses information that would not have been available at the time, such as the day's closing price to decide a trade made at the open, or an earnings figure before it was published. The results look wonderful and mean nothing.
  • Over-fitting. You keep adjusting settings until the past looks perfect. With enough tweaks, any rule can be made to fit history, and it usually fails on new data. Fewer rules and fewer settings are safer.
  • Survivorship bias. The test only includes companies that still exist today, quietly leaving out those that went bankrupt or were removed from an index. That makes buying the dips look safer than it was.
  • Ignoring costs. Commissions, the bid–ask spread and slippage (the gap between the price you expected and the price you got) add up, especially for strategies that trade often.
  • Too few trades. Twenty trades can look excellent by luck alone. Look for a large number of trades across different kinds of market.
Be more suspicious of a back-test that looks perfect than of one that looks merely decent. Perfection on past data is the most common sign that something went wrong in the test.

Testing honestly

A few habits make a back-test far more trustworthy. Keep part of the history aside and do not look at it while you build the rules; test on it only once, at the end. Check the strategy in different conditions: rising, falling and sideways markets, calm and volatile years. Change each setting a little and see whether the results fall apart; a sturdy idea degrades gently, a fragile one collapses.

Look at more than the total return. How large was the worst losing stretch? How long did it last? Could you really have kept following the rules through it? A strategy you abandon halfway through its worst month has, for you, a very different result from the one on paper.

Paper trading: the bridge

Even an honest back-test runs on the past. The next step is to run the strategy on live prices with simulated money. Paper trading shows things a back-test hides: how often the rules really trigger, how fills compare with what you expected, how the strategy behaves around news, and, most importantly, how you behave when following it.

Give paper trading enough time to matter: several weeks at least, and enough trades to see a pattern. Treat the paper account as if it were real. If you would not take a trade with real money, do not take it on paper either, or the test teaches you nothing.

  • Use the same size rules you plan to use with real money.
  • Record every trade, including the ones you skipped and why.
  • Compare the paper results with the back-test. Large differences are a warning.

The journal: turning trades into evidence

A journal is where a strategy learns. For each trade, note the setup, the entry, the stop, the exit, the result in R, and one sentence on what you did well or badly. Over time, patterns appear: a time of day that never works, a setup that works only in calm markets, a habit of exiting winners too early.

Review the journal on a schedule, perhaps weekly, and change the rules only after the review, never during a trade. Small, deliberate changes, tested again on paper, keep the strategy improving instead of drifting.

When is a strategy ready?

There is no certificate. A reasonable checklist before using real money:

  1. The rules are written down and unambiguous.
  2. The back-test avoided look-ahead, included costs and covered different markets.
  3. Paper trading on live prices behaved roughly like the back-test.
  4. You followed the rules through a losing stretch without changing them.
  5. The size per trade is small enough that a long losing run is survivable.

Even then, start small. The aim is not to find a strategy that cannot lose. It is to know what you are doing, why, and how much it can cost when it goes wrong.

Education only. This article explains general market ideas; it is not investment advice or a recommendation to buy or sell any security. Trading involves substantial risk of loss.

Keep reading

← All articles in the Journal