SD1H4H — Gold (XAU/USD) Multi-TF Structure Backtest Original Model

Dukascopy 1-minute BID data, Jan 2022 → present · Gold (XAU/USD) (XAUUSD)
← All Markets Overview Strategy A Strategy B Trade Viewer Regime Analysis Entry Filters Trading Costs Monte Carlo Variant Model →

Regime Analysis

Corrected, ex-ante methodology. Every metric below is a TRAILING window (last 20 trading days / 480 1H bars / 120 4H bars) ending at each trade's own entry time, using only data that would actually have been known at that moment — no lookahead. Each trade is one data point (not each month), giving far more statistical power. Trades are split chronologically: the first 70% (train) is used only to pick a median threshold and a direction; the last 30% (test) is untouched until that frozen rule is checked against it. An earlier version of this page aggregated metrics over whole calendar months, which leaks future-within-the-month information into the metric — see the superseded section at the bottom for why that mattered.

Strategy A

1125 trades total — 787 train / 338 test.

MetricSpearman ρ (all trades)p-valueSignificant?Train: filter vs. otherTest: filter vs. otherHeld up?
Trailing 20D Realized Volatility (log-return std)+0.0420.1609n.s.+0.06R vs -0.04R+0.28R vs +0.15Rheld up
Trailing 20D Avg ATR (% of price)+0.0520.0853n.s.+0.10R vs -0.07R+0.30R vs -0.22Rheld up
Trailing 20D Trend Efficiency Ratio (Kaufman ER)-0.0160.5936n.s.+0.05R vs -0.03R+0.47R vs +0.08Rheld up
Trailing 4H Structure Flips (last 120 bars)+0.0360.2352n.s.+0.03R vs -0.01R+0.55R vs +0.08Rheld up
Trailing 1H Structure Flips (last 480 bars)+0.0440.1470n.s.+0.10R vs -0.09R+0.22R vs +0.27Rdid not hold up
Trailing 1H Extension from EMA50 (x ATR14, last 480 bars)-0.0510.0894n.s.+0.03R vs +0.00R+0.24R vs +0.26Rdid not hold up
Trade-level regime scatter gridTrain vs test median-split comparison

Strategy B

755 trades total — 528 train / 227 test.

MetricSpearman ρ (all trades)p-valueSignificant?Train: filter vs. otherTest: filter vs. otherHeld up?
Trailing 20D Realized Volatility (log-return std)+0.0300.4080n.s.+0.15R vs +0.06R+0.76R vs +0.41Rheld up
Trailing 20D Avg ATR (% of price)+0.0480.1932n.s.+0.14R vs +0.07R+0.78R vs +0.47Rheld up
Trailing 20D Trend Efficiency Ratio (Kaufman ER)-0.0290.4306n.s.+0.17R vs +0.04R+0.28R vs +0.79Rdid not hold up
Trailing 4H Structure Flips (last 120 bars)+0.0330.3651n.s.+0.22R vs -0.05R+0.34R vs +0.59Rdid not hold up
Trailing 1H Structure Flips (last 480 bars)+0.0440.2344n.s.+0.14R vs +0.07R+0.41R vs +0.57Rdid not hold up
Trailing 1H Extension from EMA50 (x ATR14, last 480 bars)-0.0910.0128p < 0.05+0.12R vs +0.09R+0.81R vs +0.14Rheld up
Trade-level regime scatter gridTrain vs test median-split comparison
Bottom line: none of the six metrics tested reach statistical significance (p < 0.05) against individual trade outcomes for either strategy — correlations are all near zero (|ρ| < 0.1). Where a train/test split shows the same direction in both halves ('held up'), that is expected to happen by chance a meaningful fraction of the time when the underlying effect is this weak and six metrics are tested per strategy — it should not be read as a discovered filter. As of this data, none of these price/structure regime measures give an actionable, statistically defensible rule for skipping trades ahead of time.

Superseded: Original Monthly (Hindsight) Analysis

This section has a lookahead-bias flaw and is kept only for transparency — do not treat it as a trading rule. Each metric here was computed over the ENTIRE calendar month a trade closed in, including days after that trade. A month's full ATR% or trend-efficiency ratio isn't knowable until the month is over, so the strong-looking correlations below describe what characterized good/bad months in hindsight, not something that could have been acted on in real time. The corrected, trade-level, ex-ante version above supersedes this.

Strategy A

MetricSpearman ρp-valueSignificant?
Daily Realized Volatility (log-return std)+0.5850.0000p < 0.05
Avg Daily ATR (% of price)+0.5980.0000p < 0.05
Trend Efficiency Ratio (Kaufman ER, 0-1)+0.0170.9014n.s.
4H Structure Flips (BOS+CHoCH count)+0.2090.1255n.s.
1H Structure Flips (BOS+CHoCH count)+0.2060.1317n.s.
1H Extension from EMA50 (x ATR14)+0.0400.7692n.s.
Regime scatter gridGood vs bad months regime comparison

Strategy B

MetricSpearman ρp-valueSignificant?
Daily Realized Volatility (log-return std)+0.2320.0879n.s.
Avg Daily ATR (% of price)+0.3290.0142p < 0.05
Trend Efficiency Ratio (Kaufman ER, 0-1)+0.2590.0561n.s.
4H Structure Flips (BOS+CHoCH count)+0.0500.7194n.s.
1H Structure Flips (BOS+CHoCH count)+0.3110.0209p < 0.05
1H Extension from EMA50 (x ATR14)+0.1370.3198n.s.
Regime scatter gridGood vs bad months regime comparison