METHODOLOGY · WALK-FORWARD

How We Actually Test

我們如何真正做回測

A good backtest is not a pretty equity curve. It's a process that anyone with the same data could reproduce and arrive at the same conclusion.

好嘅回測唔係靚仔曲線,係任何人用同樣數據都重現到同樣結論嘅流程。

The Four Non-Negotiables

四條硬規

If a strategy fails any of these tests, it does not enter paper trading.
任何一項過唔到,都唔會進入 paper test。

Statistical Significance 統計顯著性

Profit Factor (net of cost)> 1.30
Bootstrap 95% CI on mean RDoes not cross zero
Minimum trades per fold≥ 30
Minimum folds out-of-sample≥ 60

Robustness Checks 穩健性測試

Top-2 trade removalPF still > 1.15
Parameter neighbourhood (±20%)Average must be profitable
Regime split (bull / bear / chop)PF > 1 in at least 2 regimes
OOS vs IS Sharpe ratioOOS ≥ 60% of IS

Cost Honesty 成本誠實

Spread sourceLive Vantage RAW ticks
CommissionUS$6 RT / lot
Swap / rolloverModelled per symbol
Slippage0.5 × spread on stop orders

Validation Protocol 驗證協定

In-sample window3 years rolling
Out-of-sample window3 months forward
Reoptimisation cadenceEvery 3 months
Anchored walk-forwardYes — no data leakage

Worked Example — Donchian XAUUSD

範例:Donchian 黃金策略

A classic 20/10 Donchian channel breakout on daily gold bars. Boring by design. Published here so you can see the whole process, not just the headline number.
經典 20/10 Donchian 通道突破,日線黃金。本意就係沉悶 — 放出嚟係為咗展示完整流程,唔係得個數字。

4,961
Daily Bars
日線數據
2007–2026
Period
期間
97
WF Folds
滾動折數
1.27
Profit Factor
盈利因子

Headline Results 主要結果

Net return 淨回報+314 R
Profit Factor 盈利因子1.27
Win rate 勝率41.8%
Avg winner / avg loser1.77
Max drawdown 最大回撤−22.4 R
Total trades 交易次數412
Avg hold time 平均持倉24 trading days

Robustness Panel 穩健性面板

Bootstrap 95% CI (mean R)[+0.32, +1.19]
PF after removing top 2 trades1.19 PASS
Parameter neighbourhood avg PF1.22
OOS Sharpe / IS Sharpe0.71 PASS
Bull regime PF1.34
Bear regime PF1.21
Chop regime PF0.94
What this example shows · 範例要講嘅係

The Donchian system is deliberately not spectacular. A PF of 1.27 is what a real, cost-honest breakout strategy looks like on a liquid instrument over two decades. What matters is that it survives every robustness test we throw at it — including the chop regime where it underperforms but does not blow up.
呢個策略刻意唔係亮眼。PF 1.27 就係一個真實、誠實計成本嘅突破策略喺 20 年流動品種上應有嘅樣。重點係佢通過每一項穩健性測試 — 包括表現最差嘅震盪市,都只係輸少少,冇爆。

Why Bootstrap Confidence Intervals?

為何使用 Bootstrap 信心區間

Because a single average R-multiple tells you almost nothing about whether a strategy is real.
因為單一嘅平均 R 值幾乎冇講到呢個策略係唔係真嘅。

🎲

10,000 Resamples

重抽 1 萬次

We resample the trade ledger with replacement 10,000 times and compute the distribution of possible outcomes. This shows us the range of realities, not just the one we happened to observe.

我哋用放回式抽樣重抽交易紀錄一萬次,計算可能結果嘅分佈 — 睇見嘅係「可能性範圍」,而唔係我哋碰巧見到嗰一個。
📉

CI Must Not Cross Zero

信心區間不可跨越零

If the 95% CI on mean R includes zero, the strategy's edge is statistically indistinguishable from luck. We reject it, no matter how pretty the equity curve looks.

如果平均 R 嘅 95% 信心區間包含零,嗰個「優勢」統計上同運氣冇分別。管你曲線幾靚,一律 reject。
🎯

Top-2 Removal Test

剔除 Top 2 測試

If removing the two best trades collapses your profit factor below 1.15, your "system" was one or two lucky trades wearing a trench coat. Real edges are diffuse.

如果刪掉最好嘅兩筆交易,盈利因子就崩到 1.15 以下,嗰個「系統」其實係一兩筆好彩交易著住外套。真實優勢係分散嘅。
Backtest disclaimer · 回測免責

All results on this page are historical simulations of rule-based strategies against past market data. Past performance is not a reliable indicator of future results. Backtesting does not account for all real-world factors such as execution delays, requotes, weekend gaps, broker insolvency, or regulatory change. Strategies shown here are research examples, not trading recommendations. See the full disclaimer for details.

本頁所有結果為規則型策略於歷史市場數據上的模擬。過往表現不代表將來表現。回測無法完整反映執行延遲、重新報價、週末跳空、券商破產或監管變動等現實因素。頁面上的策略為研究範例,非交易建議。詳情見完整免責聲明