On this page
A trading idea is an opinion until it is written as rules that someone else could follow. This lesson walks through four steps, each with a tool on this site: describe the rule, test it on invented prices, see what position size does to it, and record real decisions. It also says plainly what a test on invented prices can and cannot show.
Step one: describe the rule
The strategy library sets out well-known approaches in one fixed form: the idea, the rule as it is usually stated, what the approach needs from a market, what it costs and when it fails. That form is a useful template for any rule. A rule is ready to test when it answers four questions.
- What must happen for a trade to open?
- Where is the stop-loss?
- Where is the target, or what else closes the trade?
- How much of the balance is at risk on each trade?
If two people reading the rule would take different trades, it is not yet a rule.
Step two: test it on invented prices
The Rule bench, in the Labs, builds a rule from those same parts: an entry, a stop, a target and a risk per trade. It runs the rule over invented prices and reports the result. The rule is read at the close of a bar and acted on at the open of the next, the spread is paid on the way in, and where one bar touches both the stop and the target the test counts the loss. The bench then runs the same rule on many other invented markets, so one result can be set beside the spread of results.
What invented prices can and cannot show
The bench’s prices are a random walk, which has no memory. No rule has an edge on such prices, so every gain there is luck and the only reliable effect is cost.
| A test on invented prices can show | It cannot show |
|---|---|
| How a backtest decides entries, exits and fills | Whether the rule has an edge in a real market |
| How much the spread takes from a rule that trades often | How real orders are filled, or how a real spread widens |
| How far results differ when one rule meets many markets | The effect of margin, overnight financing or commission |
| How the stop and the target change the share of winning trades | What the rule will do next |
The lesson of the bench is caution. A rule that looks good on one invented market and poor on most others shows how easily one good backtest misleads, on real prices as on invented ones.
Step three: see what size does
The same list of trades gives very different accounts at different sizes. The Risk Room replays one run of trades at several position sizes, works out the chance of a losing streak of a given length, and shows the gain needed to recover a loss: a fall of 50% needs a gain of 100% to return to the start. A rule that survives at a small fraction of the balance per trade can empty an account at a large one, with no change to the rule.
Step four: record real decisions
Simulations leave out the person. The journal on this site keeps a private list of trades in the browser: the plan, what happened and the mood at the time. From that list it works out the win rate, the expectancy and the running total. A journal tests what no simulation can, which is whether the rules were followed. It records what happened. It does not say what will.
What the four steps add up to
Taken in order, the steps turn a vague idea into something that can be examined: stated, tested for its mechanics, sized, and checked against behaviour. None of them shows that a rule will be profitable. The loss figures that regulators require firms to publish show that most retail accounts trading CFDs lose money, and a careful process changes how a loss is understood, not whether it can happen.
Three questions
Check what you have read
Each answer is in the lesson above. Nothing is timed or graded: when all three are answered correctly, this browser remembers the lesson as completed, and nothing is sent anywhere.
Question 1 of 3
Question 2 of 3
Question 3 of 3
The lesson, in a limerick
A rule written down, clear and plain,can be tested again and again.Then the size, then the logof each trade, clear the fog:what they show is the risk, not the gain.
Lesson 1 of 1 in Trading styles. A suggested order: nothing here is graded, timed or certified.
