Chiến lược & backtestStrategy & backtests
GoldenRobber EA — Cách hoạt độngGoldenRobber EA — How it works
Giải thích cơ chế đặt lệnh / đóng lệnh của EA — mọi thứ EA có thể làm, minh hoạ bằng config archive/configs/ScalpingTrending-pass10-choppyUpgrade-hybrid-27052025-1456.set. Muốn biết bản production đang thật sự chạy thế nào: EA chạy theo pass58.
The EA's entry / exit mechanisms — everything it can do, illustrated with the archive/configs/ScalpingTrending-pass10-choppyUpgrade-hybrid-27052025-1456.set config. For what the production build actually does: How it runs (pass58).
Tài liệu gốc mô tả EA v1.40 với config pass10 hybrid (Trend Filter M3, DCA Neg bật). Hiện tại: EA production là 1.42 b7, config ổn định là v1.42.b7-pass58.set (xem từng giá trị). Các khái niệm trên trang này (round, chân P/N, bộ lọc Init, DCA, Cluster scalping, Global TP) vẫn đúng vì chúng là cơ chế trong mã. Nhưng nhiều cơ chế bị config pass58 tắt nên không bao giờ chạy — danh sách đầy đủ ở EA chạy theo pass58. pass58 giữ Trend M3/MA30, DCA Pos 0.1 ×1.5 trần 0.5 và Global TP $10, nhưng tắt DCA Neg (InpDCANegEnable=false) và tắt StrongMove. Chính config hybrid M3 trên trang này đã cháy khi backtest gồm Jan–May 2023: xem So sánh backtest.
The original document describes EA v1.40 with the pass10 hybrid config (Trend Filter M3, DCA Neg on). Today the production EA is 1.42 b7 and the stable config is v1.42.b7-pass58.set (see every value). The concepts on this page (round, P/N legs, Init filters, DCA, Cluster scalping, Global TP) still hold, because they are mechanisms in the source. But pass58 disables several of them, so they never run — the full list is on How it runs (pass58). pass58 keeps Trend M3/MA30, DCA Pos 0.1 ×1.5 capped at 0.5 and Global TP $10, but disables DCA Neg (InpDCANegEnable=false) and StrongMove. The hybrid M3 config described here blew up in backtests that include Jan–May 2023: see Backtest comparison.
- LoạiType
- Grid / DCA + Cluster Scalping
- Symbol mục tiêuTarget symbol
- XAUUSD (Gold)
- Khung vào lệnhEntry cadence
- theo nến đóng (M1 bar)on closed bar (M1)
- PipPoints
- 10 (1 pip = 10 points ≈ 0.10 giá gold)10 (1 pip = 10 points ≈ 0.10 gold price)
Tài liệu mô tả cách EA vận hành (phiên bản v1.40) và giá trị config nêu trên. Đây không phải lời khuyên đầu tư. EA theo trend và nhồi ở phía thuận trend; lệnh kẹt sau khi đảo chiều được cơ chế Cluster scalping (chốt theo cụm) gỡ — nhưng KHÔNG có cắt lỗ cứng, nên cú đi ngược mạnh hoặc whipsaw vẫn có thể gây drawdown lớn / margin stop-out.
This document describes how the EA operates (version v1.40) and the config values above. Not investment advice. The EA follows the trend and adds on the with-trend side; positions left stuck after a reversal are recovered by the Cluster scalping (close-by-cluster) mechanism — but there is no hard stop-loss, so a strong adverse move or whipsaw can still cause large drawdown / margin stop-out.
1. Tổng quan triết lý1. Strategy philosophy
GoldenRobber là EA lưới hai chiều có điều hướng theo trend kết hợp Cluster scalping (chốt theo cụm). Ý tưởng cốt lõi:
- Mở lệnh theo trend — mỗi "round" mở chân thuận trend (P) và/hoặc chân ngược (N), nhưng khi bật Trend Filter thì ưu tiên chỉ mở chân thuận trend.
- Nhồi DCA khi giá đi tiếp — chân thắng (Pos) nhồi để cộng dồn lợi nhuận, chân thua (Neg) nhồi để gồng/giảm giá vốn.
- Chốt lời nhỏ liên tục — đóng từng lệnh ở TP nhỏ ($10), hoặc đóng cụm nhiều lệnh khi tổng đạt mục tiêu (Cluster scalping — chốt theo cụm), hoặc chốt toàn tài khoản ở Global TP ($10).
- Phòng thủ thích nghi — khi tài khoản "khỏe" thì giao dịch mạnh tay (aggressive như pass 10); khi số lệnh tăng cao (≥ 24) thì tự bật loạt bộ lọc chống thị trường nhiễu (choppy).
GoldenRobber is a trend-directed two-sided grid combined with Cluster scalping (close by cluster). Core ideas:
- Enter with the trend — each "round" opens a with-trend leg (P) and/or a counter leg (N); with the Trend Filter on it favours only the with-trend leg.
- DCA averaging as price extends — the winning side (Pos) adds to compound profit, the losing side (Neg) adds to hold / lower the average price.
- Take small profits constantly — close each order at a small TP ($10), or close a cluster of orders when their combined profit hits a target (Cluster scalping — close by cluster), or flat the whole account at Global TP ($10).
- Adaptive defense — when the account is "healthy" it trades aggressively (like pass 10); once order count climbs (≥ 24) it auto-enables a stack of choppy-market filters.
Tên file config — "ScalpingTrending pass10 choppyUpgrade hybrid" — phản ánh đúng cấu hình: scalping theo trend, bản pass 10, nâng cấp phòng thủ choppy, chế độ hybrid (HTTP + TCP cloud sync).
The config name — "ScalpingTrending pass10 choppyUpgrade hybrid" — matches the setup exactly: trend scalping, the pass-10 build, choppy-defense upgrade, hybrid mode (HTTP + TCP cloud sync).
2. Khái niệm cốt lõi2. Core concepts
Round (R)
Một "round" = một lần Init. Mỗi round có một mã số riêng, các lệnh được gắn nhãn (comment) Init R5 P, B#3… để EA truy vết (xem comment lệnh).
Với config này SingleRoundMode = true: mỗi chiều chỉ chạy một round tại một thời điểm, phải nhồi xong (tối đa 8 adds/side) trước khi Init mới cùng chiều.
A "round" = one Init. Each round has its own ID number; orders are tagged Init R5 P, B#3… for tracking (see order comments).
This config sets SingleRoundMode = true: only one round per direction at a time; it must finish adding (max 8 adds/side) before a new same-side Init.
Chân P và chân NP leg and N leg
P (Positive) = chân thuận trend. Dùng tham số nhóm DCA Pos (lot lớn hơn, nhồi để ăn theo xu hướng).
N (Negative) = chân ngược trend. Dùng nhóm DCA Neg (lot nhỏ, multiplier thấp — gồng/bảo hiểm).
Trend UP → P = Buy, N = Sell. Trend DOWN → P = Sell, N = Buy.
P (Positive) = the with-trend leg. Uses the DCA Pos group (bigger lot, rides the trend).
N (Negative) = the counter-trend leg. Uses the DCA Neg group (small lot, low multiplier — hold / insurance).
Trend UP → P = Buy, N = Sell. Trend DOWN → P = Sell, N = Buy.
Đơn vị pip trong configPip unit in this config
Trong config này 1 pip = 10 points. Với XAUUSD (point = 0.01) thì 1 pip ≈ 0.10 giá. Vì vậy khoảng cách nhồi 34 pip ≈ 3.4 USD dịch chuyển giá vàng giữa các lần nhồi.
In this config 1 pip = 10 points. On XAUUSD (point = 0.01) that's ≈ 0.10 in price. So the 34-pip add spacing ≈ a 3.4 USD gold-price move between adds.
3. Mở lệnh — Init một round3. Opening — Init a round
EA kiểm tra điều kiện mở lệnh mỗi khi có một nến mới vừa đóng.
The EA checks the open conditions each time a new bar has just closed.
Quyết định chiều (Buy hay Sell)Direction decision (Buy or Sell)
flowchart LR MA["Đường MA30 trên M3 quyết định hướng, có vùng đệm quanh MA (rộng/hẹp theo ADX)"] MA --> U["Giá trên MA30 + vùng đệm"] --> UP(["UP"]) --> UPR["P = BUY · N = SELL"] MA --> M["Giá quanh MA30 (trong đệm)"] --> NEU(["TRUNG TÍNH"]) --> NEUR["CHẶN Init — không vào lệnh"] MA --> D["Giá dưới MA30 − vùng đệm"] --> DN(["DOWN"]) --> DNR["P = SELL · N = BUY"]
Bước 1 — Xác định hướng: EA so sánh giá với đường trung bình MA30 (khung M3). Khi trung tính (không rõ xu hướng) thì không vào lệnh.
flowchart LR MA["The MA-30 on M3 sets direction, with a neutral band around the MA (width varies with ADX)"] MA --> U["Price above MA30 + band"] --> UP(["UP"]) --> UPR["P = BUY · N = SELL"] MA --> M["Price within the band"] --> NEU(["NEUTRAL"]) --> NEUR["BLOCK Init — no entry"] MA --> D["Price below MA30 − band"] --> DN(["DOWN"]) --> DNR["P = SELL · N = BUY"]
Step 1 — Direction: the EA compares price to the MA-30 (M3). When neutral (no clear trend) it does not enter.
- Xác định hướng trend dựa trên đường trung bình MA 30 trên khung M3 (có một vùng trung tính quanh MA). Kết quả: UP, DOWN, hoặc trung tính.
- Nếu UP → P = Buy; nếu DOWN → P = Sell. Nếu trung tính → fallback theo màu nến vừa đóng (xanh = Buy, đỏ = Sell).
- Vì Trend Filter ApplyInit = true: ở trạng thái trung tính, Init bị chặn (không cho mở khi không rõ trend).
- Determine trend direction from the MA-30 moving average on M3 (with a neutral band around the MA). Result: UP, DOWN, or neutral.
- UP → P = Buy; DOWN → P = Sell. If neutral → fallback to the last closed candle colour (green = Buy, red = Sell).
- Since Trend Filter ApplyInit = true: in the neutral state Init is blocked (no entry without a clear trend).
Lot vào lệnhEntry lot
| ChânLeg | Lot khởi điểmStart lot | Ghi chúNote |
|---|---|---|
| P thuận trendwith-trend | 0.10 | Lot khởi điểm chân thuận trend (tự co giãn theo rủi ro)With-trend leg start lot (auto-scales with risk) |
| N ngược trendcounter-trend | 0.02 | Lot khởi điểm chân ngược trend (tự co giãn theo rủi ro)Counter-trend leg start lot (auto-scales with risk) |
Vì Trend Filter chặn chiều trung tính và chỉ cho chân thuận trend khi rõ xu hướng, thực tế nhiều round chỉ mở một chân P theo trend, thay vì cả cặp P+N.
Because the Trend Filter blocks the neutral direction and only allows the with-trend leg when the trend is clear, in practice many rounds open just a single P leg instead of a full P+N pair.
Điều kiện thời điểm Init (config này)Init timing conditions (this config)
| Tham sốParameter | Giá trịValue | Ý nghĩaMeaning |
|---|---|---|
InitCooldownSec | 60s | Cách lần Init trước tối thiểu 60 giâyAt least 60s since the previous Init |
WaitAfterCloseSec | 60s | Chờ 60s sau khi vừa đóng lệnh mới được mở lạiWait 60s after a close before opening again |
InitRequireMinPips | true | Bắt buộc cách lệnh cũ tối thiểu MinPips (chống trùng giá)Must be ≥ MinPips from existing orders (anti-duplicate price) |
InitMinBarRangeBars | 5 | Xét biên độ trong 5 nến gần nhấtEvaluates range over the last 5 bars |
StrongMove | true ×1.2 | Khi nến biến động mạnh, nới khoảng cách ×1.2 (tránh vào lúc spike)On strong-volatility bars, widen spacing ×1.2 (avoid spike entries) |
SingleRoundGapInits / GapMaxPips | 10 / 0 | Cho phép Init lấp khoảng trống giữa các lệnh (GapMaxPips=0 = không giới hạn pip)Allow Init to fill gaps between orders (GapMaxPips=0 = no pip cap) |
| Trading Time | 00:00–23:59 | Giao dịch cả ngàyTrades all day |
| Weekend Protection | OFF | Không có bảo vệ cuối tuần trong config nàyNo weekend protection in this config |
Ở các bản sau (1.41.x), nhóm StrongMove thành một gói "init theo cú chạy mạnh" có TF riêng, bypass filter hướng và yêu cầu phá SR. Xem Phân tích pass58 (1.41.4) và tham số Order Execution.
In later builds (1.41.x) the StrongMove group became an "init on a strong move" package with its own TF, direction-filter bypass and an SR-break requirement. See pass58 analysis (1.41.4) and the Order Execution inputs.
4. Bộ lọc vào lệnh (Init & Add)4. Entry filters (Init & Add)
flowchart TD S["Tín hiệu Init — nến M1 vừa đóng"] --> F1["1 · Trend Filter · M3 MA30 (hướng rõ ≠ trung tính)"] F1 --> F2["2 · Multi-TF · H4 MA50 phải đồng thuận *"] F2 --> F3["3 · Pivot · H1 · giá gần S/R trong 50 pip"] F3 --> F4["4 · Wick · M15 + H1 · không bị nến từ chối"] F4 --> F5["5 · Choppy ADX · H1 · ADX ≥ 22 *"] F5 --> F6["6 · Dual-Dir · không mở ngược chiều khi chop *"] F6 --> F7["7 · Anti-Whipsaw · chưa dính cooldown lỗ *"] F7 --> OK(["✓ MỞ LỆNH Init — chỉ chân thuận trend (P)"]) F1 -.-> X["✗ phía vi phạm bị chặn"] F2 -.-> X F3 -.-> X F4 -.-> X F5 -.-> X F6 -.-> X F7 -.-> X
Mọi lệnh Init phải "rơi" qua từng tầng lọc từ trên xuống. Vi phạm bất kỳ tầng nào → chặn phía đó. Các bước có dấu * chỉ bật khi tài khoản ≥ 24 lệnh (Choppy Defense); dưới 24 lệnh, các tầng * bị bỏ qua nên EA vào lệnh thoáng hơn.
flowchart TD S["Init signal — M1 bar just closed"] --> F1["1 · Trend Filter · M3 MA30 (clear direction ≠ neutral)"] F1 --> F2["2 · Multi-TF · H4 MA50 must agree *"] F2 --> F3["3 · Pivot · H1 · price near S/R within 50 pips"] F3 --> F4["4 · Wick · M15 + H1 · no candle rejection"] F4 --> F5["5 · Choppy ADX · H1 · ADX ≥ 22 *"] F5 --> F6["6 · Dual-Dir · no opposite side during chop *"] F6 --> F7["7 · Anti-Whipsaw · not in loss cooldown *"] F7 --> OK(["✓ OPEN Init — with-trend leg only (P)"]) F1 -.-> X["✗ violating side is blocked"] F2 -.-> X F3 -.-> X F4 -.-> X F5 -.-> X F6 -.-> X F7 -.-> X
Every Init "falls" through each filter top-to-bottom; failing any step blocks that side. Starred steps activate only when the account holds ≥ 24 orders (Choppy Defense); below 24 orders they are skipped, so the EA enters more freely.
Trước khi mở/nhồi, lệnh phải qua một chuỗi bộ lọc. Cột "Áp cho" cho biết bộ lọc áp cho lần mở mới, lần nhồi, hay cả hai (theo config).
Before opening/adding, an order passes a filter chain. The "Applies to" column shows whether each filter gates new opens, adds, or both (per this config).
| Bộ lọcFilter | Trạng tháiState | Áp choApplies to | Hành vi (config này)Behaviour (this config) |
|---|---|---|---|
| Trend Filter (MA30, M3) | ON | Init + Add | UP→chỉ Buy, DOWN→chỉ Sell, trung tính→chặn. NeutralPips động theo ADX.UP→Buy only, DOWN→Sell only, neutral→block. NeutralPips adapts to ADX. |
| Multi-TF Trend (H4, MA50) | ON* | Init | Khung H4 phải đồng thuận hướng, nếu không → chặn chiều đó. (*chỉ khi defense active)H4 must agree on direction, else block that side. (*only when defense active) |
| Pivot Point (H1, lvl 2) | ON | Init | Buy phải gần Support, Sell gần Resistance; trong bán kính 50 pip. Không áp cho Add.Buy must be near Support, Sell near Resistance; within 50 pips. Not applied to Add. |
| Wick Rejection (M15 + H1) | ON | Init | Râu nến trên dài → chặn Buy; râu dưới dài → chặn Sell (AND 2 khung). Không áp Add.Long upper wick → block Buy; long lower wick → block Sell (AND of 2 TFs). Not on Add. |
| Choppy ADX (H1, ADX<22) | ON* | Init + Add | ADX<22 = thị trường nhiễu → chặn cả hai chiều. (*chỉ khi defense active)ADX<22 = choppy → block both sides. (*only when defense active) |
| Dual-Dir Chop | ON* | Init | Khi choppy + đã có Buy → cấm Init Sell (và ngược lại). Chống kẹt 2 chiều.When choppy + already have Buy → forbid Sell Init (and vice versa). Anti two-sided stuck. |
| Anti-Whipsaw Cooldown | ON* | Init | Lỗ thực ≥ $250 trong 24h → nghỉ 4h không Init. (*chỉ khi defense active)Realized loss ≥ $250 over 24h → pause Init for 4h. (*only when defense active) |
| Sideway (Bollinger) | OFF | — | TắtDisabled |
| Support/Resistance | OFF | — | TắtDisabled |
| News Filter (lịch tin)News Filter (calendar) | OFF | — | Tắt (config này tạo trước tính năng News)Disabled (this config predates the News feature) |
Các mục đánh dấu * nằm trong Choppy Defense Group (mục 7): chỉ thực sự kích hoạt khi tài khoản đạt ngưỡng kích (ở đây: ≥ 24 lệnh). Khi dưới ngưỡng, EA bỏ qua chúng để vào lệnh mạnh tay. Tham số chi tiết: Trend · Pivot · Wick · Whipsaw defense.
Filters marked * belong to the Choppy Defense Group (section 7): they only truly activate once the account hits the trigger threshold (here: ≥ 24 orders). Below that, the EA skips them to enter aggressively. Input details: Trend · Pivot · Wick · Whipsaw defense.
5. Nhồi lệnh — DCA Pos & DCA Neg5. DCA adds — Pos & Neg
Khi giá dịch chuyển đủ MinPips so với mức tham chiếu của round, EA nhồi thêm lệnh. Bảng dưới là cỡ lot mỗi lần nhồi: chân thuận trend (P) 0.10 ×1.5 — trần 0.5, tăng nhanh để "ăn dày"; chân ngược trend (N) 0.02 ×1.2 — trần 0.2, lot nhỏ, tăng chậm để gồng.
When price moves at least MinPips from the round's reference level, the EA adds another order. The table below is the lot per add: the with-trend leg (P) 0.10 ×1.5 — cap 0.5 grows fast to press a winning move; the counter leg (N) 0.02 ×1.2 — cap 0.2 stays small and grows slowly to hold.
| BậcStep | Chân P (lot)P leg (lot) | Chân N (lot)N leg (lot) |
|---|---|---|
| Init | 0.10 | 0.020 |
| +1 | 0.15 | 0.024 |
| +2 | 0.23 | 0.029 |
| +3 | 0.34 | 0.035 |
| +4 | 0.50 | 0.041 |
| +5 | 0.50 | 0.050 |
Mỗi bậc cách nhau 34 pip (~3.4 giá vàng). Bậc lũy tiến reset về lot đầu khi một lệnh trong chuỗi được đóng.Each step is 34 pips (~3.4 in gold price). The ladder resets to the start lot when a link in the chain closes.
DCA Pos — chân thuận trendDCA Pos — with-trend leg
| Start lot | 0.10 |
| Multiplier | ×1.5 mỗi cấpper level |
| Lot tối đa/lệnhMax lot/order | 0.5 |
| Khoảng cáchSpacing | 34 pip34 pips |
| Max trades | 0 = không giới hạn0 = unlimited |
Lot tăng nhanh (0.10 → 0.15 → 0.225 → …) để "ăn dày" khi trend chạy đúng hướng.
Lot grows fast (0.10 → 0.15 → 0.225 → …) to compound when the trend runs the right way.
DCA Neg — chân ngược trendDCA Neg — counter-trend leg pass58: TẮTpass58: OFF
Nhóm này thuộc config pass10 hybrid. Config đang chạy (pass58) đặt InpDCANegEnable=false nên không có lệnh DCANeg nào — dữ liệu production chỉ thấy DCAPos R… B#/S# và Init R… P.
This group belongs to the pass10 hybrid config. The config in production (pass58) sets InpDCANegEnable=false, so no DCANeg order exists — live data only shows DCAPos R… B#/S# and Init R… P.
| Start lot | 0.02 |
| Multiplier | ×1.2 mỗi cấpper level |
| Lot tối đa/lệnhMax lot/order | 0.2 |
| Khoảng cáchSpacing | 34 pip34 pips |
| Max trades | 0 = không giới hạn0 = unlimited |
Lot nhỏ, tăng chậm — vai trò gồng/giảm giá vốn khi giá đi ngược chân thuận.
Small lot, slow growth — its role is to hold / average down when price moves against the P leg.
Cách tính lot: lot khởi điểm × hệ số nhân, lũy tiến theo số lệnh cùng chiều đã mở trong round, chặn trần ở mức lot tối đa. Trong config này, bậc lũy tiến reset về lot khởi điểm mỗi khi một lệnh trong chuỗi được đóng (DCA chain persistent tắt).
Khi nhồi, lệnh vẫn phải qua: Trend Filter, Pivot (Init thôi), Choppy. Riêng Wick & Pivot KHÔNG áp cho Add trong config này (ApplyAdd=false). Xem thêm các loại DCA và tham số DCA.
How lot is sized: start lot × a multiplier, compounding with the number of same-side orders already open in the round, capped at the max lot. In this config the compounding step resets back to the start lot whenever a chain order is closed (DCA chain persistent off).
When adding, orders still pass: Trend Filter, Pivot (Init only), Choppy. Note Wick & Pivot do NOT apply to Add in this config (ApplyAdd=false). See also DCA types and the DCA inputs.
6. Đóng lệnh — 5 con đường6. Closing — five paths
flowchart LR
B(("RỔ LỆNH (mọi vị thế)"))
B --> T1["① TP lẻ mỗi lệnh — chốt $10 (chân P)"]
B --> T2["② Cluster scalping — $10 (gỡ lỗ $300)"]
B --> T3["③ Global TP $10 → đóng sạch cả rổ"]
B -.-> T4["④ Clear-Stuck — TẮT"]
B -.-> T5["⑤ Hedge — TẮT (mềm)"]Năm lối thoát của rổ lệnh. ④ và ⑤ bị tắt trong config này — và không có Global SL cứng (999999), nên khi giá đi ngược rổ có thể phình rất to.
flowchart LR
B(("ORDER BASKET (all positions)"))
B --> T1["① Per-order TP — close at $10 (P leg)"]
B --> T2["② Cluster scalping — $10 (recover $300)"]
B --> T3["③ Global TP $10 → flat the whole basket"]
B -.-> T4["④ Clear-Stuck — OFF"]
B -.-> T5["⑤ Hedge — OFF (soft)"]Five ways the basket can close. ④ and ⑤ are disabled here — and there is no hard Global SL (999999), so if price runs against it the basket can balloon.
① Per-order TP (chốt từng lệnh)① Per-order TP (close each order)
Mỗi lệnh chân thuận trend tự chốt khi đạt $10 lợi nhuận (chế độ chốt nội bộ — EA tự đóng lệnh, không đặt TP lên broker). Chân ngược trend không bật chốt lời riêng → để cơ chế Cluster scalping (chốt theo cụm) gom lại.
Each with-trend leg order self-closes at $10 profit (internal close mode — the EA closes it itself, no broker TP order). The counter-trend leg has no per-order take-profit → it's left for the Cluster scalping (close-by-cluster) mechanism to harvest.
Tạm ngừng chốt lẻ: nếu chiều đối diện đang lỗ ≥ $500, EA ngừng chốt lẻ bên thắng — giữ các lệnh thắng để Cluster scalping ghép cụm với bên lỗ.
Pause on singles: if the opposite side is losing ≥ $500, the EA stops taking single profits on the winning side — holding the winners so Cluster scalping can pair them with the losing side.
② Cluster Scalping (chốt theo cụm)② Cluster Scalping (close by cluster)
Đây là phần "thông minh" nhất. EA gom nhiều lệnh (cả Buy lẫn Sell) thành một cụm và đóng đồng thời khi tổng lợi nhuận cụm đạt mục tiêu.
This is the "smart" part. The EA gathers multiple orders (both Buy and Sell) into a cluster and closes them together when the cluster's combined profit hits a target.
| Tham số (config)Parameter (config) | Giá trịValue | Ý nghĩaMeaning |
|---|---|---|
TiaProfitUSD | $10 | Mục tiêu lợi nhuận cụm ở trạng thái bình thườngCluster profit target in the normal state |
TiaProfitWhenLossUSD | $300 | Khi tổng tài khoản lỗ ≥ $500 (HighTargetLoss) → nâng mục tiêu cụm lên $300 để gỡ lỗ đáng kểWhen total account loss ≥ $500 (HighTargetLoss) → raise the cluster target to $300 to meaningfully recover |
ClusterMin | 3 | Cụm cần tối thiểu 3 lệnhCluster needs ≥ 3 orders |
BotDCAStyle / MinSide / MinOther | true / 2 / 3 | Mỗi chiều phải có tối thiểu số lệnh nhất định trong cụmEach side must contribute a minimum number of orders to the cluster |
AnchorRequire / AnchorMaxDist | true / 1000 piptrue / 1000 pips | Cụm BẮT BUỘC chứa "neo" (lệnh lỗ xa nhất bên đối diện); nếu neo xa >1000 pip thì miễn điều kiện (van xả chống kẹt)The cluster MUST contain the "anchor" (farthest losing order on the opposite side); if the anchor is >1000 pips away the requirement is waived (anti-deadlock release valve) |
PrioritizeByDistance | true | Ưu tiên đóng lệnh lỗ xa giá hiện tại trướcPrefer closing losses farthest from current price first |
DcaTpSynergy | true | Ưu tiên gom các lệnh thắng đang gần TP để tận dụngPrefer grouping winners already near their TP |
BlockSameSideWhenStuck | true | Khi có lệnh kẹt (lỗ ≥ $500 hoặc > 4h), không cho cụm chỉ-thắng cùng chiều fire — giữ winner chờ ghép với lệnh lỗWhen an order is stuck (loss ≥ $500 or age > 4h), don't let a winners-only same-side cluster fire — hold winners to pair with the loss |
TiaMaxPositions | 22 | Giới hạn số lệnh đưa vào thuật toán chọn cụm (chống quá tải CPU)Cap on positions fed to the cluster-selection algorithm (CPU guard) |
Cơ chế: EA tự động tìm tổ hợp lệnh tối ưu (gồm cả lệnh lỗ làm "neo") sao cho tổng lợi nhuận ≥ mục tiêu, rồi đóng đồng loạt → vừa chốt lời vừa "dọn" bớt lệnh lỗ kẹt. Chi tiết: tham số Tia, Tia và DCA TP.
Mechanism: the EA automatically finds the optimal combination of orders (including a losing "anchor") whose combined profit ≥ the target, then closes them at once → taking profit while clearing some stuck losses. Details: Tia inputs, Tia and DCA TP.
③ Global TP / SL (chốt toàn bộ)③ Global TP / SL (close everything)
| Tham sốParameter | Giá trịValue | Hành viBehaviour |
|---|---|---|
GlobalTPUSD | $10 | Khi tổng lãi toàn bộ ≥ $10 → đóng SẠCH tất cả lệnhWhen total account profit ≥ $10 → close ALL orders |
GlobalSLUSD | 999999 | Tắt thực tế — không có cắt lỗ tổngEffectively off — no total stop-loss |
Đáng chú ý: Global TP chỉ $10 → EA có xu hướng "ăn non" cả rổ ngay khi tổng vừa dương $10. Nhưng không có Global SL (999999) và Clear-Stuck tắt → khi đi ngược, rổ lệnh có thể phình rất to mà không có chốt lỗ cứng. Đây là điểm rủi ro chính của config này.
Notable: Global TP is only $10 → the EA tends to flat the whole basket as soon as the total ticks +$10. But there is no Global SL (999999) and Clear-Stuck is off → when price runs against it, the order basket can balloon with no hard stop. This is the config's main risk.
④ Global SL Clear Stuck (dọn lệnh kẹt)④ Global SL Clear Stuck (clear stuck orders)
TẮT trong config này (tham số Clear Stuck).
OFF in this config (Clear Stuck inputs).
⑤ Hedging (phòng hộ)⑤ Hedging
Ngưỡng kích đặt rất cao (cần 9999 lệnh cùng chiều) → thực tế không bao giờ kích hoạt. Hedging bị tắt mềm trong config này (tham số Hedge).
The trigger threshold is set very high (needs 9999 same-side orders) → effectively never triggers. Hedging is soft-disabled in this config (Hedge inputs).
7. Hệ phòng thủ Choppy (trái tim bản "hybrid")7. Choppy defense (the heart of the "hybrid" build)
flowchart LR
C{"Số lệnh đang mở"}
C -->|"dưới 24 lệnh"| H["KHỎE: bỏ qua Choppy ADX · Multi-TF · Adaptive NP · Anti-Whipsaw · Dual-Dir → vào lệnh mạnh tay"]
C -->|"từ 24 lệnh trở lên"| S["CĂNG: chặn khi ADX dưới 22 · nghỉ sau chuỗi lỗ · nới vùng đệm trend · cấm mở 2 chiều khi chop"]Cả cụm phòng thủ là một "công tắc" bật/tắt theo số lệnh đang mở. Dưới 24 lệnh EA vào mạnh tay; từ 24 lệnh trở lên EA chuyển sang thận trọng. Công tắc: defense = (số lệnh ≥ 24). Hai trigger còn lại (lỗ nổi / lệch lot) = 0 nên đang tắt.
flowchart LR
C{"Open order count"}
C -->|"below 24 orders"| H["HEALTHY: skips Choppy ADX · Multi-TF · Adaptive NP · Anti-Whipsaw · Dual-Dir → trades aggressively"]
C -->|"24 orders or more"| S["STRESSED: blocks when ADX below 22 · pauses after losses · widens trend band · bans dual direction"]The whole defense stack is a switch that toggles on the number of open orders. Below 24 the EA trades aggressively; from 24 up it turns cautious. Switch: defense = (orders ≥ 24). The other two triggers (floating loss / lot-diff) are 0, so they are off.
Đây là "công tắc thông minh" quyết định khi nào bật loạt bộ lọc phòng thủ.
The "smart switch" deciding when to enable the defensive filter stack.
Cơ chế trigger (config này)Trigger mechanism (this config)
| Trigger | NgưỡngThreshold | Kích hoạt khiFires when |
|---|---|---|
Số lệnhOrder count (MinOrders) | 24 | Số lệnh (không tính hedge) ≥ 24Non-hedge orders ≥ 24 |
Lỗ nổiFloating loss (NegProfitUSD) | 0 | Tắt (giá trị 0 = không xét)Disabled (value 0 = not checked) |
Lệch lotLot imbalance (LotDiffMin) | 0 | Tắt (giá trị 0 = không xét)Disabled (value 0 = not checked) |
Quy tắc: defenseActive = (orders≥24) OR (loss trigger) OR (lotdiff trigger). Vì hai trigger sau = 0 (tắt), thực tế: defense bật khi và chỉ khi số lệnh ≥ 24.
Rule: defenseActive = (orders≥24) OR (loss trigger) OR (lotdiff trigger). Since the latter two are 0 (disabled), in practice: defense turns on if and only if order count ≥ 24.
Bỏ qua Choppy ADX, Anti-Whipsaw, Adaptive NP, Multi-TF, Dual-Dir → vào lệnh mạnh tay (giống pass 10 gốc). Chỉ còn Trend + Pivot + Wick lọc.
Skips Choppy ADX, Anti-Whipsaw, Adaptive NP, Multi-TF, Dual-Dir → trades aggressively (like the original pass 10). Only Trend + Pivot + Wick filter remain.
Bật toàn bộ phòng thủ → thận trọng: chặn vào khi ADX<22 (nhiễu), nghỉ sau chuỗi lỗ, cấm mở 2 chiều, nới NeutralPips.
Enables the full defense stack → cautious: blocks entries when ADX<22 (choppy), pauses after loss streaks, forbids two-sided opens, widens NeutralPips.
Adaptive NeutralPips (vùng trung tính trend động)Adaptive NeutralPips (dynamic trend neutral band)
Khi hệ phòng thủ bật, EA đổi vùng trung tính của Trend Filter theo sức mạnh trend (ADX):
When defense is active, the EA changes the Trend Filter's neutral band by trend strength (ADX):
| ADX | Chế độRegime | NeutralPips | Hệ quảEffect |
|---|---|---|---|
| ≥ 28 | Trend mạnhStrong trend | 5 | Nhạy — vào sát MA, bắt trend sớmSensitive — enter close to the MA, catch trends early |
| 18–28 | Trung bìnhMid | 20 | Thận trọng vừaModerately cautious |
| < 18 | NhiễuChoppy | 50 | Khắt khe — cần lệch MA nhiều mới vàoStrict — needs a large MA deviation to enter |
8. Bảng tổng hợp config này8. This config at a glance
| NhómGroup | Trạng tháiState | Thông số chínhKey settings |
|---|---|---|
| Trading Time | 24/7 | 00:00 – 23:59 |
| Single Round Mode | ON | Max 8 adds/side, gap-init 10 |
| Trend Filter | ON | M3, MA30, ApplyInit+Add, NeutralPips độngM3, MA30, ApplyInit+Add, dynamic NeutralPips |
| Pivot | ON | H1, 50 pip, lvl 2, chỉ InitH1, 50 pips, lvl 2, Init only |
| Wick Rejection | ON | M15+H1, chỉ InitM15+H1, Init only |
| Choppy Defense Group | ON | Kích khi ≥ 24 lệnhTriggers at ≥ 24 orders |
| Choppy ADX / AntiWhip / MultiTF / DualDir / AdaptiveNP | ON* | Trong group, kích theo triggerIn the group, gated by trigger |
| DCA Pos | ON | 0.10 ×1.5, 34 pip, max 0.5, TP $100.10 ×1.5, 34 pips, max 0.5, TP $10 |
| DCA Neg | ON pass58: TẮTpass58: OFF | 0.02 ×1.2, 34 pip, max 0.2, không TP riêng. pass58 tắt nhánh này (InpDCANegEnable=false) nên không còn bồi ngược giá; cờ này chỉ chặn bước Add, còn chân N lúc Init bị Trend Filter (InpTrendFilterApplyInit=true) loại — thực tế production không có lệnh DCANeg nào — xem Config ổn định.0.02 ×1.2, 34 pips, max 0.2, no per-order TP. pass58 disables this branch (InpDCANegEnable=false), so there are no counter-price adds; the flag only gates the Add step, while the Init N leg is ruled out by the Trend Filter (InpTrendFilterApplyInit=true) — in production no DCANeg order exists — see Stable config. |
| Cluster scalping (chốt theo cụm)Cluster scalping (close by cluster) | ON | Target $10 (gỡ lỗ $300), neo bắt buộc, max 22 vị thếTarget $10 (recover $300), anchor required, max 22 positions |
| Global TP | ON | $10 → đóng sạch$10 → close all |
| Global SL | OFF | 999999 (không cắt lỗ tổng)999999 (no total stop) |
| Clear Stuck / Hedging | OFF | Tắt (Hedge AfterTrades 9999)Disabled (Hedge AfterTrades 9999) |
| Sideway / S-R / Flash Crash | OFF | TắtDisabled |
| Weekend / News Filter | OFF | TắtDisabled |
| Daily Limit / Max DD / Max Loss/Day | OFF | Tắt — không giới hạn rủi ro theo ngàyDisabled — no per-day risk caps |
| Cloud Sync | ON | Hybrid → fxconsole.gamelau.uk |
| Residue Prevent | ON | Chống để sót vị thế lẻ; AutoClean tắtPrevents leftover odd positions; AutoClean off |
9. Vòng đời điển hình của một round9. Typical round lifecycle
flowchart LR
subgraph R["Một round"]
A["Init BUY 0.10"] --> B["DCA +34 pip, ×1.5"] --> C["TP $10 chốt lẻ"] --> D["trend đảo ▼"] --> E["N = SELL (gồng)"] --> F["Cluster scalping: gom winner + neo lỗ → đóng cụm ≥ $10"]
end
R -.->|"bất cứ lúc nào tổng lãi Σ ≥ $10"| G(["Global TP đóng sạch cả rổ"])Một round điển hình: vào theo trend → nhồi khi giá đi tiếp → chốt lời nhỏ liên tục; khi giá đảo, chân ngược (N) gồng lại và cơ chế Cluster scalping (chốt theo cụm) dùng lãi chiều mới để gom winner + "neo" lỗ rồi đóng cụm. Global TP $10 có thể kết thúc cả rổ bất cứ lúc nào.
flowchart LR
subgraph R["One round"]
A["Init BUY 0.10"] --> B["DCA +34 pip, ×1.5"] --> C["TP $10 singles"] --> D["trend reverses ▼"] --> E["N = SELL (hold)"] --> F["Cluster scalping: winner + losing anchor → close cluster ≥ $10"]
end
R -.->|"any time total P/L Σ ≥ $10"| G(["Global TP flats the whole basket"])A typical round: enter with the trend → add on continuation → take small TPs; after a reversal the counter leg (N) holds and the Cluster scalping (close by cluster) mechanism uses profit from the new direction to harvest winners plus the losing "anchor". Global TP $10 can end the whole basket at any moment.
- Phát hiện trend — ADX cao, giá vượt MA30 (M3) hơn NeutralPips động → trend UP xác định.
- Qua bộ lọc Init — Multi-TF (H4) đồng thuận, giá gần Pivot Support, không có râu nến từ chối, không choppy → cho phép.
- Init — mở chân P = Buy 0.10 lot (round R#k).
- Giá chạy đúng hướng +34 pip → DCA Pos nhồi Buy 0.15 (0.10×1.5). Tiếp tục theo trend.
- Chốt lẻ — từng lệnh Buy đạt +$10 tự đóng (Virtual TP). Lợi nhuận nhỏ gom liên tục.
- Giá quay đầu → chân N = Sell (DCA Neg 0.02 ×1.2) bắt đầu nhồi để gồng; bên Buy ngừng chốt lẻ nếu Sell lỗ ≥ $500.
- Cluster scalping — gom cụm — khi có đủ lệnh 2 chiều, EA ghép winner + neo lỗ thành cụm, đóng khi tổng ≥ $10 (hoặc $300 nếu đang lỗ nặng).
- Global TP $10 — bất cứ lúc nào tổng toàn tài khoản ≥ $10 → đóng sạch, kết thúc, chờ 60s rồi lặp lại.
- Nếu số lệnh ≥ 24 → hệ phòng thủ choppy bật, siết vào lệnh để không phình thêm trong thị trường nhiễu.
- Detect trend — high ADX, price above MA30 (M3) by more than the dynamic NeutralPips → UP trend confirmed.
- Pass Init filters — Multi-TF (H4) agrees, price near a Pivot Support, no rejection wick, not choppy → allowed.
- Init — open P leg = Buy 0.10 lot (round R#k).
- Price runs +34 pips the right way → DCA Pos adds Buy 0.15 (0.10×1.5). Keeps following the trend.
- Take singles — each Buy order hitting +$10 self-closes (Virtual TP). Small profits accumulate.
- Price reverses → N leg = Sell (DCA Neg 0.02 ×1.2) starts adding to hold; the Buy side stops taking singles if Sell loses ≥ $500.
- Cluster scalping — once enough two-sided orders exist, the EA pairs winners + a losing anchor into a cluster, closing when the total ≥ $10 (or $300 if deeply in loss).
- Global TP $10 — any time the whole account total ≥ $10 → flat everything, done, wait 60s, repeat.
- If orders ≥ 24 → choppy defense engages, tightening entries to avoid ballooning in a noisy market.
10. Rủi ro & lưu ý quan trọng10. Risk & important notes
EA luôn nhồi ở phía thuận trend. Khi trend đảo, bộ lọc trend ngừng nhồi phía cũ và chuyển theo chiều mới; các lệnh cũ thành "lệnh kẹt", và cơ chế Cluster scalping (chốt theo cụm) dùng lợi nhuận từ chiều trend mới để gom & "dọn" chúng. Nhờ vậy một cú đảo chiều rõ ràng thường được Cluster scalping xử lý — đây không phải martingale nhồi vào lệnh thua thuần túy.
The EA always adds on the with-trend side. When the trend flips, the trend filter stops adding to the old side and follows the new direction; the old orders become "stuck losers" and the Cluster scalping (close by cluster) mechanism uses profit from the new trend direction to group & clear them. So a clean reversal is usually handled by Cluster scalping — this is not a plain add-into-loss martingale.
Global SL = 999999, Clear-Stuck OFF, Max DD/Loss-per-day OFF. Trong lúc chờ Cluster scalping gỡ, rổ lệnh kẹt (lot ×1.5, có thể đã rất lớn sau một trend dài) tạo floating drawdown lớn, trong khi chiều phục hồi mới bắt đầu từ lot nhỏ (0.10) → lệch lot. Nếu cú đi ngược đủ mạnh/nhanh, tài khoản có thể bị margin stop-out TRƯỚC khi Cluster scalping kịp gỡ.
Global SL = 999999, Clear-Stuck OFF, Max DD/Loss-per-day OFF. While waiting for Cluster scalping to clear, the stuck basket (×1.5 lots, possibly already large after a long trend) creates big floating drawdown, while the recovering side restarts from a small lot (0.10) → lot imbalance. If the adverse move is strong/fast enough, the account can hit margin stop-out BEFORE Cluster scalping gets to rescue it.
Trên tín hiệu trend nhanh (M3), thị trường nhiễu đảo chiều liên tục → EA mở theo trend rồi bị kẹt mỗi lần → lệnh kẹt chất đống cả hai phía nhanh hơn tốc độ Cluster scalping dọn. Đây chính là lý do bản này thêm "choppyUpgrade" — nhưng phòng thủ chỉ bật muộn (≥ 24 lệnh). Xem thêm Phòng thủ whipsaw.
On a fast trend signal (M3), a choppy market flips direction repeatedly → the EA opens with-trend and gets caught each time → stuck orders pile up on both sides faster than Cluster scalping can clear them. That's exactly why this build added the "choppyUpgrade" defense — but it only engages late (≥ 24 orders). See also Whipsaw defense.
Chân thuận trend nhân 1.5 mỗi cấp (trần 0.5 lot) và không giới hạn số lần nhồi → exposure phình nhanh khi trend chạy dài; cú đảo sau đó càng lớn. Cần vốn đủ dày (Hướng dẫn vốn).
The with-trend leg multiplies 1.5 per level (capped at 0.5 lot) with no cap on the number of adds → exposure compounds fast on a long trend, making any later reversal bigger. Needs sufficient capital (Capital sizing).
Bật hybrid tới fxconsole.gamelau.uk để khôi phục/đồng bộ trạng thái (TMap). Cần whitelist URL và mạng ổn định (tham số Cloud Sync, Khôi phục TMap).
Hybrid mode talks to fxconsole.gamelau.uk for state recovery/sync (TMap). Needs URL whitelisting and stable network (Cloud Sync inputs, TMap recovery).
Config này không bật News/Weekend nên backtest phản ánh đúng hành vi. Khi chạy live nên cân nhắc bật Weekend Protection và News Filter (v1.40) để tránh gap cuối tuần và sự kiện lớn — xem tài liệu tương ứng.
This config has News/Weekend off, so backtests reflect true behaviour. For live, consider enabling Weekend Protection and the News Filter (v1.40) to avoid weekend gaps and major events — see the respective docs.
11. Toàn bộ tham số trong file .set11. Full .set parameter dump
Bảng đầy đủ mọi tham số trong archive/configs/ScalpingTrending-pass10-choppyUpgrade-hybrid-27052025-1456.set (giá trị thực = số đầu tiên trước || trong file). Cột Ghi chú giải mã khung thời gian / trạng thái OFF. Bỏ qua các tham số màu sắc & vị trí panel — không ảnh hưởng chiến lược. Bearer token đã được ẩn.
Complete table of every parameter in archive/configs/ScalpingTrending-pass10-choppyUpgrade-hybrid-27052025-1456.set (the live value = the first number before || in the file). The Note column decodes timeframes / OFF state. Panel colour & position parameters omitted — no strategy effect. The bearer token is redacted.
| Tham sốParameter | Giá trịValue | Ghi chúNote |
|---|---|---|
| Config | ||
InpConfigVersion | ScalpingTrending-pass10-choppyUpgrade-hybrid-27052025-1456 | |
InpConfigDateTime | 2026-05-27 14:56 | |
| Order Execution · inputs | ||
InpWaitAfterCloseSec | 60 | Chờ sau khi đóng (giây)Wait after a close (sec) |
InpInitCooldownSec | 60 | Giãn cách giữa 2 lần InitSpacing between Inits |
InpAddCooldownSec | 60 | Giãn cách giữa 2 lần AddSpacing between Adds |
InpEntryTimingProfileEnable | false | OFF |
InpStrongMoveEnable | true | Nới khoảng cách khi biến động mạnhWiden spacing on strong moves |
InpStrongMoveMultiplier | 1.2 | ×1.2 |
InpVolatilityATRPeriod | 14 | |
InpVolatilityATRMult | 1.0 | |
InpInitRequireMinPips | true | Bắt buộc cách lệnh cũ MinPipsMust be ≥ MinPips from old orders |
InpInitMinBarRangePips | 0.0 | Tắt lọc biên độ theo pipRange-by-pip filter off |
InpInitMinBarRangeBars | 5 | Xét 5 nếnEvaluate 5 bars |
InpMaxOpenPositions | 0 | 0 = không giới hạn0 = unlimited |
InpSingleRoundMode | true | Một round mỗi chiềuOne round per direction |
InpSingleRoundMaxAdds | 8 | Tối đa 8 add/sideMax 8 adds/side |
InpSingleRoundGapInits | 10 | Lấp tối đa 10 Init khoảng trốngUp to 10 gap-fill Inits |
InpSingleRoundGapMaxPips | 0 | 0 = không giới hạn pip0 = no pip cap |
InpInitNaturalBypassTrend | false | OFF |
InpInitNaturalFallbackMinBars | 8 | Fallback Init sau 8 nến bị chặnFallback Init after 8 blocked bars |
InpNoAddWhenInitSameBar | false | OFF |
InpAddRequireSameSideRef | false | OFF |
InpMaxAddsPerBarPerSide | 0 | 0 = không giới hạn0 = unlimited |
InpMaxOrdersPerRound | 0 | 0 = không giới hạn0 = unlimited |
InpPriceZonePips | 0.0 | TắtDisabled |
InpMaxOrdersInPriceZone | 0 | TắtDisabled |
| Lot Balance · inputs | ||
InpLotBalanceMode | 1 | |
InpLotBalanceLossTriggerUSD | 23000 | |
InpLotBalanceEnable | false | OFF |
InpLotBalanceBypassMaxTrades | false | OFF |
InpLotBalanceUseTargetLevel | false | OFF |
InpLotBalanceTrigger | 6.5 | |
InpLotBalanceTarget | 0.5 | |
InpLotBalanceMaxLotPerOrder | 0.2 | |
InpMaxTotalLot | 0.0 | 0 = không giới hạn tổng lot0 = no total-lot cap |
| Flash Crash Protection — OFF · inputs | ||
InpFlashCrashEnable | false | OFF |
InpFlashCrashPips | 200 | |
InpFlashCrashWindowSec | 300 | |
InpFlashCrashCooldownSec | 1800 | |
InpFlashCrashBalanceIntervalSec | 60 | |
InpFlashCrashBalanceMaxLot | 0.3 | |
| Support / Resistance — OFF · inputs | ||
InpSupportResistanceEnable | false | OFF |
InpSupportResistancePips | 50 | |
InpSupportResistanceApplyInit / ApplyAdd | true / true | (không tác dụng vì group OFF)(no effect, group OFF) |
InpSRTF | 16385 | H1 |
InpSRSwingLeft / Right | 3 / 3 | |
InpSRLookbackBars | 180 | |
InpSRMinTouches / MaxTouches | 3 / 6 | |
InpSRTouchToleranceMult | 0.7 | |
InpSRATRPeriod | 14 | |
InpSRImpulseATRMult | 1.0 | |
InpSRUseHTFConfluence | true | |
InpSRConfluenceTF | 16388 | H4 |
InpSRConfluenceMult | 1.0 | |
InpSRMinScore | 4 | |
InpSRRequireCandleConfirm | true | |
InpSRGateAdd | false | OFF |
| Trend Filter — ON · inputs | ||
InpTrendFilterEnable | true | ON |
InpTrendFilterTF | 3 | M3 |
InpTrendFilterMAPeriod | 30 | |
InpTrendFilterApplyInit / ApplyAdd | true / true | Áp cả Init & AddApplies to Init & Add |
InpTrendFilterNeutralPips | 10 | Tĩnh (bị Adaptive ghi đè khi defense active)Static (overridden by Adaptive when defense active) |
| Sideway Filter (Bollinger) — OFF · inputs | ||
InpSidewayFilterEnable | false | OFF |
InpSidewayTF | 15 | M15 |
InpSidewayBBPeriod | 14 | |
InpSidewayBBDeviation | 2.0 | |
InpSidewayBBBandwidthMax | 3.2 | |
InpSidewayATRNormalize | true | |
InpSidewayATRPeriod | 14 | |
InpSidewayBlockInit / BlockAdd | true / true | |
InpSidewayAllowNaturalInit | false | |
| Pivot Point — ON · inputs | ||
InpPivotFilterEnable | true | ON |
InpPivotFilterIndependent | false | Phối hợp với Trend/SRCo-op with Trend/SR |
InpPivotTF | 16385 | H1 |
InpPivotMethod | 2 | Index 2 (Auto) |
InpPivotProximityPips | 50.0 | Bán kính 50 pip50-pip radius |
InpPivotMaxLevel | 2 | |
InpPivotApplyInit / ApplyAdd | true / false | Chỉ áp cho InitInit only |
InpPivotAutoUseATR | true | |
InpPivotAutoLowVol / HighVolRatio | 0.7 / 1.4 | |
InpPivotAutoBodyThresh | 0.65 | |
| Wick Rejection Filter — ON · inputs | ||
InpWickFilterEnable | true | ON |
InpWickFilterTF1 / TF2 | 15 / 16385 | M15 + H1 (AND) |
InpWickLookbackBars | 12 | |
InpWickToBodyRatio | 2.0 | |
InpWickToRangeMin | 0.5 | |
InpWickApplyInit / ApplyAdd | true / false | Chỉ áp cho InitInit only |
| Choppy Defense Group — ON · inputs | ||
InpChoppyDefenseGroupEnable | true | ON |
InpChoppyDefenseMinOrders | 24 | Trigger: ≥ 24 lệnhTrigger: ≥ 24 orders |
InpChoppyDefenseNegProfitUSD | 0.0 | Trigger tắt (0)Trigger disabled (0) |
InpChoppyDefenseLotDiffMin | 0.0 | Trigger tắt (0)Trigger disabled (0) |
| Choppy Market Filter (ADX) — ON* | ||
InpChoppyFilterEnable | true | ON |
InpChoppyFilterTF | 16385 | H1 |
InpChoppyAdxPeriod | 14 | |
InpChoppyAdxMinForTrend | 22.0 | ADX < 22 = nhiễuADX < 22 = choppy |
InpChoppyApplyInit / ApplyAdd | true / true | |
| Anti-Whipsaw Cooldown — ON* | ||
InpAntiWhipsawEnable | true | ON |
InpAntiWhipsawLookbackH | 24 | Cửa sổ 24h24h window |
InpAntiWhipsawMaxLossUSD | 250.0 | Lỗ ≥ $250 → cooldownLoss ≥ $250 → cooldown |
InpAntiWhipsawCooldownH | 4 | Nghỉ 4hPause 4h |
| Adaptive Trend NeutralPips — ON* | ||
InpTrendAdaptive | true | ON |
InpTrendAdaptiveADXStrong | 28.0 | |
InpTrendAdaptiveADXWeak | 18.0 | |
InpTrendNeutralStrong | 5 | ADX≥28 → 5 pipADX≥28 → 5 pips |
InpTrendNeutralMid | 20 | 18–28 → 20 pip18–28 → 20 pips |
InpTrendNeutralWeak | 50 | ADX<18 → 50 pipADX<18 → 50 pips |
| Multi-TF Trend / Dual-Dir — ON* | ||
InpMultiTfTrendEnable | true | ON |
InpMultiTfTrendHigherTF | 16388 | H4 |
InpMultiTfTrendHigherMAPeriod | 50 | |
InpDualDirChopEnable | true | ON |
| DCA Negative (chân N)(N leg) · inputs | ||
InpDCANegStartLot | 0.02 | |
InpDCANegMultiplier | 1.2 | ×1.2/cấp×1.2/level |
InpDCANegMinPips | 34 | ≈ 3.4 giá≈ 3.4 price |
InpDCANegMaxLot | 0.2 | |
InpDCANegMaxTrades | 0 | 0 = không giới hạn0 = unlimited |
InpDCANegTPEnable | false | Không TP riêngNo per-order TP |
InpDCANegTPUSD | 0.0 | |
| DCA Positive (chân P)(P leg) | ||
InpDCAPosStartLot | 0.1 | |
InpDCAPosMultiplier | 1.5 | ×1.5/cấp (lũy tiến)×1.5/level (compounding) |
InpDCAPosMinPips | 34 | ≈ 3.4 giá≈ 3.4 price |
InpDCAPosMaxLot | 0.5 | |
InpDCAPosMaxTrades | 0 | 0 = không giới hạn0 = unlimited |
InpDCAPosTPEnable | true | ON |
InpDCAPosTPUSD | 10.0 | Chốt lẻ $10Per-order TP $10 |
InpVirtualDcaTpEnable | true | TP ảo (EA tự đóng)Virtual TP (EA closes) |
InpDcaTpSkipWhenOpposLossUSD | 500.0 | Ngừng chốt lẻ khi đối diện lỗ ≥ $500Stop singles when opposite loss ≥ $500 |
InpDcaChainPersistent | false | n reset khi đóng lệnhn resets on close |
| Hedging — OFF (mềm)(soft) · inputs | ||
InpHedgeAfterTrades | 9999 | Không bao giờ kíchNever triggers |
InpHedgeMode | 1 | |
InpHedgeLotPercent | 70.0 | |
InpHedgeLotPer100USD | 0.01 | |
| Tia Orders (Cluster Scalping) — ON · inputs | ||
InpTiaClusterMin | 3 | Cụm ≥ 3 lệnhCluster ≥ 3 orders |
InpTiaClusterMax | 0 | 0 = không cap0 = no cap |
InpTiaProfitUSD | 10.0 | Mục tiêu cụm $10Cluster target $10 |
InpTiaProfitWhenLossEnable | true | ON |
InpTiaProfitWhenLossUSD | 300.0 | Mục tiêu gỡ khi lỗ nặngRecovery target when deep in loss |
InpTiaHighTargetLossUSD | 500.0 | Ngưỡng bật chế độ gỡThreshold to switch to recovery mode |
InpTiaBotDCAStyle | true | |
InpTiaBotDCAMinSide / MinOtherSide | 2 / 3 | Tối thiểu mỗi chiềuMin per side |
InpTiaPartialCloseEnable | false | OFF |
InpTiaMaskPartialCloseEnable | false | OFF |
InpTiaProfitUSDMin | 0.0 | |
InpTiaPrioritizeByDistance | true | Đóng lỗ xa trướcClose far losses first |
InpTiaAnchorRequire | true | Cụm bắt buộc có neoCluster must include anchor |
InpTiaLadderRollClose | true | |
InpTiaAnchorMaxDistPips | 1000 | Neo >1000 pip → miễnAnchor >1000 pips → waived |
InpTiaBlockSameSideWhenStuck | true | Giữ winner khi có lệnh kẹtHold winners when stuck exists |
InpTiaStuckLossUSD | 500 | Kẹt = lỗ ≥ $500Stuck = loss ≥ $500 |
InpTiaStuckAgeHours | 4 | hoặc tuổi ≥ 4hor age ≥ 4h |
InpStuckDebugLog | true | Ghi log chẩn đoánDiagnostic logging |
InpTiaCloseOldestFirst | false | |
InpTiaMaxHoldHours | 0 | 0 = không giới hạn0 = unlimited |
InpTiaDcaTpSynergyEnable | true | Ưu tiên winner gần TPPrefer winners near TP |
InpTiaMaxPositions | 22 | Cap số vị thế vào thuật toánCap positions fed to algorithm |
| Residue Position Management · inputs | ||
InpResiduePreventEnable | true | ON |
InpResidueAutoCleanEnable | false | OFF |
InpResidueAutoCleanProfitFloor | -2.0 | |
InpResidueLotMultiplier | 1.5 | |
InpResidueFilterGapDetection | true | |
InpResidueFilterRoundRefs | true | |
| Global TP/SL · inputs | ||
InpGlobalTPUSD | 10.0 | Tổng lãi ≥ $10 → đóng sạchTotal profit ≥ $10 → close all |
InpGlobalSLUSD | 999999.0 | Không cắt lỗ tổngNo total stop-loss |
| Global SL Clear Stuck — OFF · inputs | ||
InpGlobalSLClearStuckEnable | false | OFF |
InpGlobalSLClearStuckDistancePips | 250 | |
InpGlobalSLClearStuckMode | 1 | |
InpGlobalSLClearStuckMaxLossPctOfDayProfit | 35.0 | |
InpGlobalSLClearStuckProfitPeriod | 0 | |
InpGlobalSLClearStuckEmergencyPips | 0 | |
| Daily Limit / Risk Management — OFF · daily · risk | ||
InpDailyLimitEnable | false | OFF |
InpDailyLimitTargetProfitUSD / LossUSD | 0.0 / 0.0 | |
InpMaxDrawdownEnable | false | OFF |
InpMaxDrawdownPercent | 35.0 | |
InpMaxDrawdownUSD | 0.0 | |
InpMaxDrawdownCloseAll | false | |
InpMaxLossPerDayEnable | false | OFF |
InpMaxLossPerDayUSD | 5000.0 | |
| Trading Time · inputs | ||
InpStartHour : InpStartMinute | 0 : 0 | 00:00 |
InpEndHour : InpEndMinute | 23 : 59 | 23:59 (24/7) |
| Weekend Protection — OFF | ||
InpWeekendProtectionEnable | false | OFF |
InpFridayNoInitAfterHour | 13 | (không tác dụng vì OFF)(no effect, OFF) |
InpFridayCloseAllBeforeHour | 20 | |
InpFridayCloseMinProfitUSD | -50.0 | |
InpMaxNetLotBeforeWeekend | 0.35 | |
InpWeekendBalanceEnable | true | |
InpWeekendBalanceMaxLotPerOrder | 0.15 | |
InpMondayNoInitUntilHour | 0 | |
| Symbol · inputs | ||
InpPipPoints | 10 | 1 pip = 10 points |
InpMagic | 21478308 | |
| Cloud Sync — ON (hybrid) · inputs | ||
InpCloudSyncEnable | true | ON |
InpCloudBearerToken | <secret> | Đã ẩn — điền trực tiếp trên terminalRedacted — type it on the terminal |
InpCloudMyApiDomain | https://fxconsole.gamelau.uk | |
InpCloudSyncIntervalSec | 30 | |
InpCloudWebTimeoutMs | 5000 | |
InpCloudNodePriority | 100 | |
InpCloudHeartbeatTimeoutSec | 90 | |
Tạo từ phân tích hành vi EA GoldenRobber (GoldenRobber.mq5 v1.40) và file archive/configs/ScalpingTrending-pass10-choppyUpgrade-hybrid-27052025-1456.set. Giá trị mặc định của EA có thể khác giá trị trong file .set — bảng trên ưu tiên giá trị .set. Tài liệu mang tính giải thích kỹ thuật, không phải khuyến nghị giao dịch.
Generated from analysis of the GoldenRobber EA (GoldenRobber.mq5 v1.40) and the file archive/configs/ScalpingTrending-pass10-choppyUpgrade-hybrid-27052025-1456.set. The EA's built-in defaults may differ from the .set file values — the tables above prefer the .set values. This is a technical explainer, not trading advice.