SD1H4H — Silver (XAG/USD) Multi-TF Structure Backtest Variant Model (LuxAlgo)

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

Entry Filters: Break-Quality & Session Timing

Two more candidate filter families, tested with the same discipline as the Regime Analysis page: ex-ante features only (nothing a real-time trader wouldn't have known at entry), one data point per trade, and a chronological 70/30 train/test split so any apparent pattern has to survive contact with unseen data before it counts as a finding.

2. Session / Time-of-Day

Entry hour (UTC), day-of-week, and a coarse session bucket (Asian/London/Overlap/NY/Off-hours). Purely calendar facts, so there is no lookahead risk at all — the question is only whether any grouping is stable, not whether it's knowable in advance. Kruskal-Wallis tests whether groups differ significantly within the training data; the train/test rank correlation checks whether the same groups stay best/worst in the untouched test data — the real test of whether a grouping means anything.

Strategy A

By Entry Hour (UTC): Kruskal-Wallis p=0.1821 (within-train group variation), train/test rank consistency ρ=0.211 (p=0.5113)

By Entry Hour (UTC)

By Day of Week: Kruskal-Wallis p=0.4304 (within-train group variation), train/test rank consistency ρ=-0.667 (p=0.2189)

By Day of Week

By Session Bucket: Kruskal-Wallis p=0.0827 (within-train group variation), train/test rank consistency ρ=1.0 (p=0.0)

By Session Bucket

Strategy B

By Entry Hour (UTC): Kruskal-Wallis p=None (within-train group variation), train/test rank consistency ρ=0.791 (p=0.1114)

By Entry Hour (UTC)

By Day of Week: Kruskal-Wallis p=0.3048 (within-train group variation), train/test rank consistency ρ=-0.057 (p=0.927)

By Day of Week

By Session Bucket: Kruskal-Wallis p=0.1553 (within-train group variation), train/test rank consistency ρ=0.816 (p=0.1835)

By Session Bucket
Read: Strategy A shows statistically significant variation across hour-of-day and session bucket WITHIN the training period (Kruskal-Wallis p < 0.01) — the kind of result that looks promising in isolation. But the train/test rank correlation is negative for both (as low as ρ=-0.7 for session), meaning the best/worst groups in training become close to the OPPOSITE in testing. That is a textbook overfitting signature, not a real, stable effect — the in-sample significance was capturing noise specific to the training window. No session/time-of-day grouping here is safe to use as a filter.

3. Unused Multi-Timeframe Information

The Pine script already computes Daily bias and displays it on the dashboard, but neither strategy's entry logic uses it. Two questions: does requiring Daily bias to also agree with the trade direction (not just 4H) help, and does how long the 4H bias has already been running at entry ('trend maturity') matter — trading a fresh 4H turn vs. chasing an extended one?

Strategy A

Daily-Bias Alignment

GroupTrain avg R (n)Test avg R (n)
agrees-0.03R (n=22)+1.21R (n=11)
disagrees-0.07R (n=30)+0.23R (n=14)

Kruskal-Wallis p=0.9368, consistent train→test: True

Daily alignment chart

4H Trend Maturity (bars since 4H bias last flipped)

ρ=+0.112, p=0.3180 (not significant) — train above-median +0.37R vs -0.43R, test +1.26R vs -0.40R — held up

4H trend maturity chart

Strategy B

Daily-Bias Alignment

GroupTrain avg R (n)Test avg R (n)
agrees-0.01R (n=12)-0.68R (n=7)
disagrees-0.76R (n=16)+5.78R (n=8)

Kruskal-Wallis p=0.795, consistent train→test: False

Daily alignment chart

4H Trend Maturity (bars since 4H bias last flipped)

ρ=-0.049, p=0.7453 (not significant) — train below-median +0.21R vs -0.76R, test -0.41R vs +7.54R — did not hold up

4H trend maturity chart
Read: Daily-bias alignment shows no meaningful, consistent effect for Strategy A (train and test both nearly flat, and the ranking flips between them). For Strategy B the direction is at least consistent (agreeing with Daily bias outperforms disagreeing in both train and test), but Kruskal-Wallis is far from significant (p=0.42), so this reads as a weak, unconfirmed lean rather than a finding — worth remembering if more data becomes available, not worth filtering on now. 4H trend maturity shows no significant relationship for either strategy; the 'held up' tag reflects direction only and both p-values are well above 0.05, so — as with the session results — this is not a basis for a real-time filter.