Gold Support and Resistance: 5 Checks for XAU/USD Levels
Gold support and resistance at gold's own scale: size zones from ATR, score each XAU/USD level with five checks, then set the stop and lot size from it.
10 min read
Read more →Lesson 06 of 6 · Strategy and System Building
22 min4 topics
Topic 1 of 4
Here is the uncomfortable finding that closes this track: among strategies you develop, the one with the best backtest is usually not the one that performs best live. Often it is among the worst. The reason is not bad luck — it is that the process of making a backtest better is, past a point, the process of fitting it to noise.
Every parameter you are free to choose is a degree of freedom, and each one lets the strategy bend closer to the specific history you tested on.
Count them honestly, because they hide:
| Rule | Degrees of freedom |
|---|---|
| RSI(14) below 30 | 2 — the period and the threshold |
| 1.5 ATR(14) stop | 2 — the multiple and the period |
| Only between 07:00 and 16:00 | 2 — both ends |
| Target at 2R | 1 |
| Only when the 50 EMA is rising | 2 — the period and the direction rule |
| Skip Mondays | 1, and a suspicious one |
With ten parameters and 150 trades you can fit almost any history. The strategy will show an excellent backtest, and what it has learned is the particular sequence of trades in your sample rather than anything about markets.
Caution
"Skip Mondays" is the tell to watch for in your own work. A rule with no mechanism behind it, that improves the result, is fitting. If you cannot say why Mondays would be different, the rule has learned which Mondays were bad in your sample.
The single most useful diagnostic here costs nothing: after finding a parameter value, test its neighbours.
| Parameter | Strategy P | Strategy Q |
|---|---|---|
| Value − 2 | +0.04R | +0.17R |
| Value − 1 | +0.02R | +0.19R |
| Chosen value | +0.31R | +0.20R |
| Value + 1 | −0.01R | +0.18R |
| Value + 2 | +0.03R | +0.16R |
P looks better and is worthless. Its result exists at one setting and vanishes on either side, which means the market would have to repeat its past behaviour to within one parameter step. Q is flat across the whole neighbourhood — the edge does not depend on the exact number, which is what a real edge looks like.
Good to know
The plateau test works on rules as well as numbers. If removing one rule collapses the result, that rule is carrying the strategy — and it is worth asking whether it is carrying a mechanism or three specific trades.
The previous lesson set aside 30% of the data. Its value is entirely in being unseen, and it is spent the moment you look at it.
The pattern that destroys it, which nearly everyone runs at least once:
By step 4 the held-out data has informed four decisions, which makes it in-sample data with extra steps. The result now looks like an honest out-of-sample test and is nothing of the kind — and that is worse than having no test, because it carries false confidence into a live account.
Note
A reasonable expectation: out-of-sample expectancy around 50% to 70% of in-sample. Above that is a good sign. Near zero or negative means the in-sample result was mostly fitted, and no further adjustment changes that diagnosis.
The hardest part is that improving a backtest always feels like progress. The output goes up; the work seems to be paying off. Fitting and developing are indistinguishable from the inside, which is why you need external stopping rules.
Most of a strategy's real performance comes from things this track spent little time on — position sizing, costs, and whether you execute the rules as written. Parameter tuning is the most engaging part of strategy development and close to the least productive, which is precisely why it absorbs so much of the time people give it.
A simple strategy with four parameters, positive expectancy, a drawdown you can sit through and a deviation rate under 5% will outperform a beautifully optimised one you abandon in month three. That is the whole lesson, and it is the only defensible reason to stop optimising while the number is still going up.
Gold support and resistance at gold's own scale: size zones from ATR, score each XAU/USD level with five checks, then set the stop and lot size from it.
10 min read
Read more →