Chiến lược & backtestStrategy & backtests
Tóm tắt chiến lược & kết luận configStrategy summary & config conclusions
Bản chất chiến lược, config nào sống qua regime nào, ngày cháy của từng bản và các bài học đã kiểm chứng qua ~15 backtest 2023–2026 (trạng thái ngày 09/07/2026). What the strategy is, which config survives which market regime, the blow-up date of each failed build and the lessons verified over ~15 backtests 2023–2026 (state as of 09/07/2026).
Đây là kết luận ngày 09/07/2026, khi khuyến nghị deploy là H4-origin. Ngày 05/08/2026 config pass58 (Trend M3 + DCA Neg OFF) được chọn làm STABLE — nên câu "chỉ H4-origin sống tất cả" và "mọi bản M3 cháy 2023" không còn đúng tuyệt đối: pass58 là bản M3 đầu tiên sống staircase 2023 (xem So sánh backtest). "EA v1.46" ở đây là dòng thử nghiệm stair-step (1.42–1.47) đã bỏ; các input InpStairStepEnable/StableBars không có trong .set hiện tại. Hiện tại: EA production 1.42 b7 (tách từ b21.1), config ổn định v1.42.b7-pass58.set (xem từng giá trị).
These are the conclusions of 09/07/2026, when the deploy recommendation was H4-origin. On 05/08/2026 the pass58 config (Trend M3 + DCA Neg OFF) was declared STABLE — so "only H4-origin survives everything" and "every M3 build blows up in 2023" are no longer absolutely true: pass58 is the first M3 build that survives the 2023 staircase (see Backtest comparison). "EA v1.46" here is the stair-step experiment line (1.42–1.47) that was abandoned; the InpStairStepEnable/StableBars inputs do not exist in the current .set. Today: production EA 1.42 b7 (split from b21.1), stable config v1.42.b7-pass58.set (see every value).
Chi tiết đầy đủ: So sánh backtest (docs/BACKTEST_COMPARISON.md), DEPLOY/README.txt.
Full details: Backtest comparison (docs/BACKTEST_COMPARISON.md), DEPLOY/README.txt.
TL;DR — Deploy (09/07/2026)TL;DR — Deploy (09/07/2026)
- Bản deploy:
DEPLOY/ScalpingTrending-H4origin-mult1.5-Scale1.5x-DEPLOY-08072026.set(H4-origin, lot 1.5×, stair OFF). - Full 2023–2026: +$208k / $100k, 0 stop-out, DD ~30.6%, PF 1.16, ~$248/ngày giao dịch.
- Sống mọi regime đã test (staircase 2023 + whipsaw 2024/2025).
- Bản nhẹ hơn:
...-DEPLOY-07072026.set(1×, +$161k, DD ~31%). - Scale ĐÚNG (đã backtest 2023–2026):
...-TrueScale1.5x-DEPLOY-10072026.set— lot ×1.5 VÀ USD target ×1.5 (GlobalTP $15…). Trên $100k: +$240,570 (dự đoán $242k, khớp 99.4%), PF 1.16, Recovery 3.36, Win 91.52%, sống mọi regime. Nhưng equity DD 41% trên $100k (thiếu vốn) → PHẢI chạy $150k (lot cố định → % trên vốn 1.5× → DD ~31% = profile bản 1×). Bản Scale1.5x (#2, USD-fixed) chỉ scale lot → "nửa vời" ($208k, DD 30.6% trên $100k). - Tăng lãi AN TOÀN: scale lot + USD target CÙNG vốn (giữ DD% ~30%). 1.8×→$180k, 2×→$200k.
- Deploy file:
DEPLOY/ScalpingTrending-H4origin-mult1.5-Scale1.5x-DEPLOY-08072026.set(H4-origin, lot 1.5×, stair OFF). - Full 2023–2026: +$208k / $100k, 0 stop-outs, DD ~30.6%, PF 1.16, ~$248 per trading day.
- Survives every regime tested (2023 staircase + 2024/2025 whipsaw).
- Lighter version:
...-DEPLOY-07072026.set(1×, +$161k, DD ~31%). - CORRECT scaling (backtested 2023–2026):
...-TrueScale1.5x-DEPLOY-10072026.set— lot ×1.5 AND USD targets ×1.5 (GlobalTP $15…). On $100k: +$240,570 (predicted $242k, 99.4% match), PF 1.16, Recovery 3.36, Win 91.52%, survives every regime. But equity DD is 41% on $100k (under-capitalised) → MUST run on $150k (fixed lot → % on 1.5× capital → DD ~31% = the 1× profile). The Scale1.5x build (#2, USD-fixed) only scales lot → a "half measure" ($208k, DD 30.6% on $100k). - Raise profit SAFELY: scale lot + USD targets together WITH capital (keeps DD% ~30%). 1.8×→$180k, 2×→$200k.
Bản chất chiến lượcWhat the strategy is
- DCA grid mean-reversion + trend-recovery, KHÔNG hard SL.
- Global TP net (mặc định $10) = "bias close-all" — đóng sạch rổ khi tổng floating ≥ ngưỡng.
- Ôm rổ lỗ tối đa ~1 tháng chờ giá hồi hoặc trend-side + Global TP dọn.
- Primary Trend TF quyết định sống/chết: nó chặn bồi ngược trend.
- DCA grid mean-reversion + trend-recovery, NO hard SL.
- Net Global TP (default $10) = "bias close-all" — flattens the basket when total floating ≥ threshold.
- Holds a losing basket for up to ~1 month, waiting for price to come back or for the trend side + Global TP to clear it.
- The primary Trend TF decides life or death: it blocks counter-trend adds.
Giải thích từng cơ chế cho người mới: Giải thích chiến lược.
Each mechanism explained for newcomers: Strategy explained.
So sánh configConfig comparison
Full 2023–2026 ($100k) — phép thử all-regime (quan trọng nhất)Full 2023–2026 ($100k) — the all-regime test (most important)
| Config | Scale | Profit | DD | Sống mọi regime?Survives every regime? |
|---|---|---|---|---|
| H4-origin Scale1.5× ⭐ | 1.5× | +$208,420 | 30.6% | DEPLOY |
| H4-origin | 1× | +$161,066 | 31% | DEPLOY |
| M3+stair Trigger12/Rel1 | 1× | đỉnh $190k → $1kpeak $190k → $1k | — | cháy 08/05/2025blown 08/05/2025 |
| SmartStair (M3+stair smart) | 1× | đỉnh $240k → -$365peak $240k → -$365 | — | cháy 31/05/2024blown 31/05/2024 |
| M3+block-H2 (ApplyAdd) | 1× | -$101k | 101% | cháy 2023blown 2023 |
| MEDIUM (M3) | 1× | — | — | cháy 2023 (~05/2023)blown 2023 (~05/2023) |
2024–2026 ($100k, 1×) — giai đoạn ÊM (tham khảo, ĐỪNG dựa vào)2024–2026 ($100k, 1×) — the CALM period (reference only, DON'T rely on it)
| Config | Profit 24-26 | Sống 2023?Survives 2023? |
|---|---|---|
| M3+block init&add | +$341,690 | cháy 2023blown 2023 |
| MEDIUM (M3) | +$236,984 | cháy 2023blown 2023 |
| M15-Neu25 | +$211,944 | chưa testnot tested |
| H4-origin | +$144,515 | sốngsurvives |
| LotDegrade (mult 1.2) | +$126,997 | sốngsurvives |
Quy luật: profit thô tỉ lệ NGHỊCH với survival. Bản M3 lãi cao nhất 2024-26 nhưng cháy 2023/whipsaw. Chỉ H4-origin sống tất cả.
Rule: raw profit is INVERSELY related to survival. The M3 builds earn the most in 2024-26 but blow up in 2023/whipsaw. Only H4-origin survives everything.
Regime thị trường & config nào chịu đượcMarket regimes & which config survives them
| Regime | Bản sốngSurvivors | Ghi chúNotes |
|---|---|---|
| Sideway / range | tất cảall | sân nhà của DCADCA's home ground |
| Staircase trend (2023: trend + hồi nhỏ lặp)(2023: trend + repeated small pullbacks) | CHỈ primary=H4ONLY primary=H4 | M3 flip-trap → nhồi ngược trend → cháyM3 flip-trap → counter-trend adds → blow-up |
| Whipsaw 2 chiềuTwo-way whipsaw (2024/2025) | M3 tĩnh & H4 tĩnhstatic M3 & static H4 | switching cháy (switch tắt clearing của M3)switching blows up (the switch turns off M3's clearing) |
| CHƯA test / nguy hiểmNOT tested / dangerous | — | flash crash, weekend gap, sharp V-reversal, structural repricing (giá không về range cũ)flash crash, weekend gap, sharp V-reversal, structural repricing (price never returns to the old range) |
Ghi chú hiện tại: pass58 (M3 + DCA Neg OFF) sau đó đã sống staircase 2023 — xem config STABLE hiện tại.
Current note: pass58 (M3 + DCA Neg OFF) later survived the 2023 staircase — see the current STABLE config.
Bài học cốt lõi (đã kiểm chứng qua ~15 backtest)Core lessons (verified over ~15 backtests)
- Primary Trend TF là lever gốc. M3 = quá nhạy → flip-trap (cháy 2023 staircase & whipsaw). H4 = sống mọi regime. Đây là fix gốc, không phải cắt lỗ.
- Switching (stair-step) LUÔN tìm ra 1 whipsaw để chết — vì switch sang H4 làm tắt clearing nhanh của M3 (thứ cứu M3 trong whipsaw). Không tách được "profit M3 + safety H4". Với primary=H4, stair là NO-OP → tắt đi (
InpStairStepEnable=false). - Chặn lệnh bồi = starve recovery = cháy. ApplyAdd=true (double-gate) hoặc cap DCAPosMaxTrades đều giết recovery → margin call. Lệnh bồi vừa là rủi ro vừa là ĐỘNG CƠ gỡ lỗ.
- Không có hard SL (theo triết lý follow-trend + bias close-all). Đuôi rủi ro thật (flash/gap/reversal) — nếu muốn chặn wipeout: catastrophe close-all ~45% (chưa dùng).
- Scale lot phải scale CẢ USD target (insight #4): scale lot ×N VÀ mọi Inp*USD threshold ×N trên vốn ×N → profit$ ×N, DD$ ×N, DD% ~không đổi, dynamics = bản 1× validated. Chỉ scale lot mà giữ USD cố định → clear sớm → dịch dynamics → Pass 10 đã CHÁY -$96,858. (GlobalSL/ratio/multiplier KHÔNG scale.) Đừng scale trên vốn cố định quá mức (margin bind → DD vọt).
.setstale-value gotcha: input mới thiếu trong file .set cũ → MT5 GIỮ giá trị stale từ lần chạy trước (không reset default). Luôn kiểmInpStairStepEnable/StableBarstrong tab Inputs sau khi load.- Verify build: panel/log hiện version qua macro
GR_VER(v1.46+); nếu thấy version sai → đang chạy ex5 cũ.
- The primary Trend TF is the root lever. M3 = too sensitive → flip-trap (blows up in the 2023 staircase & whipsaw). H4 = survives every regime. This is the root fix, not a stop-loss.
- Switching (stair-step) ALWAYS finds a whipsaw to die in — because switching to H4 turns off M3's fast clearing (the thing that saves M3 in a whipsaw). "M3 profit + H4 safety" cannot be separated. With primary=H4, stair is a NO-OP → turn it off (
InpStairStepEnable=false). - Blocking adds = starving recovery = blow-up. ApplyAdd=true (double gate) or capping DCAPosMaxTrades both kill recovery → margin call. Adds are both the risk and the ENGINE of loss recovery.
- No hard SL (by the follow-trend + bias close-all philosophy). The real tail risk (flash/gap/reversal) — to block a wipeout: a catastrophe close-all at ~45% (not used yet).
- Scaling lot must scale the USD targets TOO (insight #4): scale lot ×N AND every Inp*USD threshold ×N on ×N capital → profit$ ×N, DD$ ×N, DD% ~unchanged, dynamics = the validated 1× build. Scaling lot only with fixed USD → clears too early → dynamics shift → Pass 10 BLEW UP at -$96,858. (GlobalSL/ratios/multipliers are NOT scaled.) Don't over-scale on fixed capital (margin binds → DD jumps).
.setstale-value gotcha: a new input missing from an old .set file → MT5 KEEPS the stale value from the previous run (does not reset to default). Always checkInpStairStepEnable/StableBarsin the Inputs tab after loading.- Verify the build: the panel/log shows the version via the
GR_VERmacro (v1.46+); if the version is wrong → an old ex5 is running.
Ngày thảm hoạ các bản cháy (để tra nhanh)Blow-up dates of failed builds (quick lookup)
| Config | Ngày cháyBlow-up date | Cơ chếMechanism |
|---|---|---|
| MEDIUM M3 (2023-only) | ~24/05/2023 | staircase → nhồi SELL ngược trend → stuck-lock deadlockstaircase → counter-trend SELL adds → stuck-lock deadlock |
| M3+stair Trigger12/Rel1 | 08/05/2025 (khởi phát 28/04)08/05/2025 (started 28/04) | whipsaw → override khoá H4 → tích luỹ 121 lệnh 2 chiềuwhipsaw → H4 lock override → 121 two-sided orders accumulated |
| SmartStair StableBars12 | 31/05/2024 | whipsaw → rổ 144 lệnh 2 chiềuwhipsaw → 144-order two-sided basket |
| H4-origin/LotDegrade + ApplyAdd | — | starve recovery (double-gate)starved recovery (double gate) |
Key params — H4-origin (nền deploy)Key params — H4-origin (deploy base)
InpTrendFilterTF = 16388 (H4) ← lever gốc
InpTrendFilterMAPeriod = 30
InpTrendFilterEnable = true
InpDCAPosMultiplier = 1.5
InpDCAPosStartLot/MaxLot = 0.10/0.50 (1×) hoặc 0.15/0.75 (1.5×)
InpGlobalTPUSD = 10 ← bias close-all, GIỮ THẤP (đừng tăng)
InpStairStepEnable = false ← stair thừa với primary=H4
InpMaxDrawdown/GlobalSL = tắt (no hard SL, theo triết lý)
InpTrendFilterTF = 16388 (H4) ← root lever
InpTrendFilterMAPeriod = 30
InpTrendFilterEnable = true
InpDCAPosMultiplier = 1.5
InpDCAPosStartLot/MaxLot = 0.10/0.50 (1×) or 0.15/0.75 (1.5×)
InpGlobalTPUSD = 10 ← bias close-all, KEEP LOW (don't raise)
InpStairStepEnable = false ← stair is redundant with primary=H4
InpMaxDrawdown/GlobalSL = off (no hard SL, by philosophy)
Hạ Trend TF về M3, bật stair-smart trên primary=H4, bật ApplyAdd, tăng GlobalTP, bỏ martingale, cap DCAPosMaxTrades → tất cả đã test và kém/cháy.
Lower the Trend TF to M3, enable stair-smart on primary=H4, enable ApplyAdd, raise GlobalTP, remove the martingale, cap DCAPosMaxTrades → all tested and worse / blown up.
Lưu ý hiện tại: pass58 lại dùng Trend M3 nhưng tắt DCA Neg; điều đó không mâu thuẫn với "KHÔNG hạ TF về M3" trong ngữ cảnh H4-origin — hai cách sửa khác nhau cho cùng một kiểu cháy. Xem So sánh backtest.
Current note: pass58 does use Trend M3 but disables DCA Neg; that does not contradict "don't lower the TF to M3" in the H4-origin context — they are two different fixes for the same failure mode. See Backtest comparison.
Config files trong repoConfig files in the repo
DEPLOY/— 2 bản deploy (H4-origin 1× & 1.5×) + README.- Root — bản test/experimental: MEDIUM (M3), stair variants (Trigger/Release/D1), SmartStair, LotDegrade, M15-Neu25, M3+ApplyAdd… (đều có ghi chú kết quả trong
docs/BACKTEST_COMPARISON.md).
DEPLOY/— 2 deploy builds (H4-origin 1× & 1.5×) + README.- Root — test/experimental builds: MEDIUM (M3), stair variants (Trigger/Release/D1), SmartStair, LotDegrade, M15-Neu25, M3+ApplyAdd… (each has result notes in
docs/BACKTEST_COMPARISON.md).