Gold Jewelry vs Gold Bars: The Real Round-Trip Cost
Gold jewelry vs gold bars: how purity, making charges, premiums, buy-back spreads and VAT make the same gram cost more to buy and return less when sold.
12 min read
Read more →Lesson 03 of 6 · Strategy and System Building
26 min4 topics
Topic 1 of 4
A backtest answers one question: would these rules have made money over this period? That is worth knowing and it is much easier to get wrong than right, because every common mistake makes the results look better. None of them make the results look worse, which should tell you how they survive.
Lookahead bias is using information in a decision that was not available when the decision would have been made. It is the most damaging error here because it is invisible in the output — the equity curve just looks excellent.
| What you did | What was actually available |
|---|---|
| Entered at the open of the candle that closed above the level | You only knew it closed above at the close |
| Used today's daily high in an intraday rule | Not known until the day ended |
| Marked a swing high as it formed | A swing needs the candles after it — lesson 1 of Track 3 |
| Used a revised economic figure | The original print is what the market traded |
| Said "the trend was up" while scrolling | You could see the right-hand side of the chart |
Row 5 is the one that catches manual backtesters, and it is close to unavoidable when the future of the chart is on screen. Knowing how it turned out changes what looks like a valid setup, and no amount of intending to be fair prevents it.
Caution
A manual backtest where you scroll a chart and note the trades you would have taken is not a backtest. It is a memory exercise conducted with the answers visible, and it reliably produces results far better than the same rules achieve live.
A test run on raw price with no costs is measuring a market nobody trades in. Costs are the difference between a strategy and a losing strategy far more often than entries are.
Run the backtest twice: once with your best estimate of costs, and once with costs doubled.
A strategy that survives the doubled version is robust. One that turns unprofitable is a strategy whose entire result is an assumption about execution — and since your execution will be worse than your assumption, that finding is the test working.
Note
Short-term strategies fail this far more often than long-term ones, for the reason lesson 1 gave: cost is roughly fixed per trade while the target scales with holding period. Doubling costs barely touches a 150-pip swing and destroys a 5-pip scalp.
Before you look at anything, split the data and put part of it away. This is the single most effective defence against every bias in this lesson, and it only works if it happens first.
| Set | Share | Used for |
|---|---|---|
| In-sample | About 70% | Developing and adjusting the rules |
| Out-of-sample | About 30% | One test, at the end |
That last point is where most people lose the benefit. The held-out set is usable exactly once per strategy; after that it has informed your choices and cannot be a clean check again. If you must iterate further, you need a third period you have still never seen.
During development you will change the rules many times. Each change is a decision made with the data in front of you, and the cumulative effect is what lesson 6 calls curve fitting.
The log from the previous lesson, applied to testing, adds one field:
| Field | Example |
|---|---|
| Change | RSI threshold 60 to 55 |
| Reason | Nine of the skipped setups reached target |
| Trades affected | 12 of 140 |
| Result | Expectancy 0.18R to 0.21R |
The log is also what makes the out-of-sample result interpretable. Two strategies can both pass with the same figure, and the one that got there in four changes is far more likely to keep working than the one that took forty — which is the argument the next lesson picks up, once the strategy has to survive contact with a live market.
Gold jewelry vs gold bars: how purity, making charges, premiums, buy-back spreads and VAT make the same gram cost more to buy and return less when sold.
12 min read
Read more →