Lesson 6 of 7 · 11 min

Testing a structure idea honestly

Turn a market-structure setup into rules two people would mark the same way, backtest it in R with costs, and avoid the biases that make these methods look better than they are.

By the end you'll be able to

  • Write a structure setup as rules precise enough that two people mark the same trades
  • Backtest it in R, including costs, and judge the result by its sample size
  • Spot the biases that flatter structure methods, from hindsight to shifting definitions

Free course

Enrol in “Market Structure: Swings, Zones and Liquidity” to start this lesson

Enrolling is free. Your progress, quiz scores and certificate are kept in your account, on every device.

  • 7 short lessons with quizzes and interactive tools
  • Lesson videos for members
  • A certificate when you finish

A channel posts five winning screenshots of its order-block setup. Each one was chosen after the result was known. To find out whether the setup works, you need every trade the rule would have taken, losers included.

From a picture to a rule

HLHHHLHHOld resistancenow supportTriggerTarget1.0918Entry1.0858Stop1.0830Tight range, 16 pips60-pip rallyTriggerTarget1.0928Entry1.0876Stop1.0848Range topRange floorTriggerStop1.0889Entry1.0869Target1.0829

Any testable method has the same four parts: setup, trigger, stop and exit, each fixed before the trade.

The pullback above is decided in full before the trade: zone, trigger candle, stop and target. A structure idea needs the same treatment. Here is one written out as rules. It is an illustration of the level of detail, not a recommendation.

  • Market and hours: EUR/USD, H1, 07:00 to 17:00 UK time.
  • Swings and breaks: N = 2; breaks count on candle closes.
  • Setup: a CHoCH down after at least two BOS up (the mirror for buys).
  • Zone: the order block of the move that made the CHoCH, full candle range.
  • Entry: sell limit at the block’s lower edge, first return only, within 20 candles of the CHoCH.
  • Stop and target: stop 3 pips above the block; target the latest swing low; skip the trade if that is under 1.5R.
  • Risk: 0.5% per trade while testing.

Then check the rule for gaps. Give it to someone else with the same chart. If you mark different trades, some step is still a judgement call.

Small stops make costs bigger

Order-block entries often use stops of 10 to 15 pips, so the spread and commission are a large share of each R. The testing a strategy lesson covers the three stages; the worked example shows what costs do to a typical structure result.

High R means long losing runs

Final balance
Worst drawdown
Longest losing streak

Each run uses the same settings with different luck. Run it several times: the shape changes, the drawdowns don't go away.

These settings have a real edge: 0.25 × 4 − 0.75 = +0.25R per trade. Yet at a 25% win rate, a run of ten or more losses somewhere in 100 trades happens in roughly four runs out of five. Press the button a few times and watch how long the flat or falling stretches last. A screenshot of a 1:5 winner says nothing about the nine losers around it.

Biases to guard against

  • Hindsight. Labels are easy on a finished chart. In a backtest, scroll forward one candle at a time and decide with the right side hidden.
  • Selection. Posted examples are winners. Count every setup the rule produces.
  • Shifting definitions. After a loss it is tempting to decide “that was not a real order block”. If the rule marked it, it counts.
  • Too many variants. Try 20 versions of the rule and one will look good by luck. That is curve fitting.

Then forward test the same rules on a demo account before any money goes in.

Try it

Backtest log

Trades
Win rate
Avg win
Avg loss
Expectancy (R/trade)
Total R
Longest losing streak
Max drawdown (R)

Plausible range of the true expectancy

Your backtest results, in R. The range shows how much the true result could differ from what this sample shows.

Start with the example, then tap −1R eight times in a row, the kind of streak a 25% method produces, and watch the expectancy and its plausible range fall.

Quick check

Quick check

  1. Question 1 of 4

    Which rule is precise enough to test?

Go deeper: Trading Expectancy: The Number That Says If a Strategy Works · How to Keep a Trading Journal (Template Included) · Lesson: Testing a strategy

BrokerCut on Telegram

Get the latest forex news and market analysis.

Join the channel