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

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 ← Original 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

80 trades total — 56 train / 24 test.

MetricSpearman ρ (all trades)p-valueSignificant?Train: filter vs. otherTest: filter vs. otherHeld up?
Trailing 20D Realized Volatility (log-return std)-0.0290.8013n.s.-0.06R vs -0.09R+4.32R vs -0.34Rheld up
Trailing 20D Trend Efficiency Ratio (Kaufman ER)+0.0330.7697n.s.+0.24R vs -0.39R+1.77R vs -0.22Rheld up
Trailing 4H Structure Flips (last 120 bars)+0.0360.7512n.s.+0.00R vs -0.20R-0.34R vs +0.83Rdid not hold up
Trailing 1H Extension from EMA50 (x ATR14, last 480 bars)-0.1150.3086n.s.-0.01R vs -0.13R+1.03R vs -1.00Rheld up
Trade-level regime scatter gridTrain vs test median-split comparison

Strategy B

34 trades total — 23 train / 11 test.

MetricSpearman ρ (all trades)p-valueSignificant?Train: filter vs. otherTest: filter vs. otherHeld up?
Trailing 20D Trend Efficiency Ratio (Kaufman ER)+0.0370.8373n.s.+1.98R vs +0.40R-0.54R vs +7.60Rdid not hold up
Trailing 4H Structure Flips (last 120 bars)-0.0910.6103n.s.+1.25R vs +1.04R+4.58R vs -0.61Rheld up
Trailing 1H Structure Flips (last 480 bars)+0.2730.1178n.s.+2.01R vs -1.00R+4.58R vs -0.61Rheld up
Trailing 1H Extension from EMA50 (x ATR14, last 480 bars)+0.0670.7058n.s.+2.22R vs +0.31R+4.58R vs -0.61Rheld 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.0980.4772n.s.
Avg Daily ATR (% of price)+0.0900.5124n.s.
Trend Efficiency Ratio (Kaufman ER, 0-1)-0.1190.3873n.s.
4H Structure Flips (BOS+CHoCH count)-0.0740.5914n.s.
1H Structure Flips (BOS+CHoCH count)+0.0730.5944n.s.
1H Extension from EMA50 (x ATR14)+0.1690.2174n.s.
Regime scatter gridGood vs bad months regime comparison

Strategy B

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