Chiến lược & backtestStrategy & backtests
EA chạy thế nào với pass58How the EA runs under pass58
Hành vi thật của bản production: cơ chế nào bật, cơ chế nào tắt, và vì sao nhiều thứ mô tả trong trang cơ chế không bao giờ xảy ra. What the production build actually does: which mechanisms are on, which are off, and why much of what the mechanism page describes never happens.
Giải thích chiến lược mô tả cơ chế của EA — mọi thứ EA có thể làm, kèm ví dụ theo config pass10 hybrid. Trang này mô tả EA đang thật sự làm gì với config pass58. Khác nhau nằm ở config, không nằm ở mã nguồn.
Strategy explained describes the EA's mechanisms — everything it can do, illustrated with the pass10 hybrid config. This page describes what the EA actually does under the pass58 config. The difference is in the config, not in the source.
Một vòng đời round, đúng như thực tếOne round's life, as it really happens
- Init một chân. Trend M3 (MA30) có hướng → EA mở một lệnh, luôn là chân P thuận trend. Trend đi ngang (< 10 pip) → không mở gì.
- Nhồi thuận giá. Giá chạy đúng hướng đủ 34 pip → thêm một lệnh DCAPos, lot ×1.5 (0.10 → 0.15 → 0.225 …) trần 0.5, tối đa 8 add mỗi round.
- Chốt lẻ. Mỗi lệnh tự đóng khi lời đạt
InpDCAPosTPUSD, EA tự đóng chứ không gửi TP lên broker. - Trend đảo. EA không nhồi ngược. Lệnh cũ thành lệnh kẹt; round mới mở theo hướng mới, nên tài khoản có lệnh cả hai phía — nhưng mỗi phía đều là DCAPos của round riêng.
- Gỡ kẹt. Tia gom cụm lời + lỗ đóng chung, hoặc Global TP đóng sạch khi cả rổ dương.
- Init opens one leg. When the M3 trend (MA30) has a direction the EA opens one order, always the with-trend P leg. A flat trend (< 10 pips) opens nothing.
- Adds follow price. Once price moves 34 pips the right way, one more DCAPos order is added, lot ×1.5 (0.10 → 0.15 → 0.225 …) capped at 0.5, at most 8 adds per round.
- Small exits. Each order closes itself at
InpDCAPosTPUSDprofit — the EA closes it; no TP is sent to the broker. - Trend flips. The EA does not add against price. Old orders become stuck; a new round opens the other way, so the account holds both sides — but each side is DCAPos from its own round.
- Recovery. Tia closes a cluster of winners plus losers together, or Global TP flattens everything once the basket is positive.
Những gì KHÔNG bao giờ xảy raWhat never happens
Đây là phần hay gây hiểu nhầm nhất khi đọc trang cơ chế: các tính năng dưới đây có đầy đủ trong mã, nhưng pass58 tắt nên không bao giờ chạy.
This is the part most easily misread from the mechanism page: every feature below exists in the source, but pass58 turns it off so it never runs.
| Cơ chếMechanism | Input | Hệ quảConsequence |
|---|---|---|
| DCA Neg (nhồi ngược giá)(counter-price adds) | InpDCANegEnable=false |
Không có lệnh DCANeg R… nào. Chân N lúc Init cũng không sinh ra, nhưng vì lý do khác — xem mục dưới.No DCANeg R… order exists. The Init N leg never appears either, but for a different reason — see below. |
| Hedge | InpHedgeEnable=false |
Không có lệnh Hedge R….No Hedge R… order. |
| Lot Balance | InpLotBalanceEnable=false |
EA không tự cân lot hai phía.The EA never rebalances lots between sides. |
| StrongMove | InpStrongMoveEnable=false |
Không có Init bypass filter theo nến mạnh.No filter-bypassing Init on a strong candle. |
| Flash Crash | InpFlashCrashEnable=false |
Không đóng băng Tia/TP khi giá rơi nhanh.Tia/TP are never frozen on a fast drop. |
| Clear Stuck | InpGlobalSLClearStuckEnable=false |
Không có cơ chế dọn lệnh kẹt theo khoảng cách.No distance-based stuck-order cleanup. |
| Max DD · Max loss/ngày · Daily limit | InpMaxDrawdownEnable · InpMaxLossPerDayEnable · InpDailyLimitEnable = false |
Không có cắt lỗ cứng ở bất kỳ mức nào; InpGlobalSLUSD=999999 cũng vậy.No hard stop at any level; InpGlobalSLUSD=999999 too. |
| Weekend protection | InpWeekendProtectionEnable=false |
EA giữ lệnh qua cuối tuần.Positions are held over the weekend. |
| S/R · Sideway (Bollinger) | InpSupportResistanceEnable · InpSidewayFilterEnable = false |
Hai bộ lọc này không tham gia quyết định vào lệnh.Neither filter takes part in entry decisions. |
Vì sao không có chân N — hai cơ chế, không phải mộtWhy there is no N leg — two mechanisms, not one
Trong mã chỉ có bốn chỗ tạo được lệnh ngược trend, và pass58 bịt cả bốn bằng hai cách khác nhau. Phân biệt được điều này mới sửa config an toàn.
The source has exactly four places that can create a counter-trend order; pass58 blocks all four, in two different ways. Knowing which is which is what makes a config change safe.
| Đường tạo lệnhCode path | Chặn bởiBlocked by |
|---|---|
| Add DCANeg (Buy và Sell)DCANeg adds (Buy and Sell) | InpDCANegEnable=false |
| Chân N lúc Init (trend UP và DOWN)Init N leg (trend UP and DOWN) | InpTrendFilterApplyInit=true — trend có hướng chỉ mở chân P; trend đi ngang thì không Init— a directional trend opens only the P leg; a flat trend opens nothing |
Tắt Trend Filter (hoặc bật InpPivotFilterIndependent, hoặc dùng Manual Init) mà vẫn để InpDCANegEnable=false thì chân N ở Init quay lại — vì cờ DCANeg không được kiểm ở bước Init. Muốn chắc chắn không bao giờ có lệnh ngược thì phải giữ cả hai.
Turning the Trend Filter off (or enabling InpPivotFilterIndependent, or using Manual Init) while leaving InpDCANegEnable=false brings the Init N leg back — the DCANeg flag is not checked at Init. To be sure no counter-trend order can appear, keep both.
Những gì đang bậtWhat is on
| NhómGroup | Giá trị đang chạyValues in production |
|---|---|
| Trend chínhPrimary trend | InpTrendFilterTF=3 (M3), MAPeriod=30, NeutralPips=10, áp cho cả Init và Addapplied to Init and Add; InpTrendAdaptive=true |
| Lọc hướng phụSecondary direction filters | Multi-TF (H4, chỉ InitInit only), Pivot (chỉ InitInit only), Wick M30+H1 (chỉ InitInit only) |
| Phòng thủ choppyChoppy defense | Cả nhóm bật nhưng chỉ kích hoạt khi rổ ≥ 24 lệnhThe whole group is on but only triggers at ≥ 24 open orders (InpChoppyDefenseMinOrders) |
| DCA Pos | 0.1 ×1.5, 34 pip, trầncap 0.5, không giới hạn số lệnhunlimited count (MaxTrades=0), tối đa 8 add/roundmax 8 adds per round |
| Chốt từng lệnhPer-order exit | InpDCAPosTPUSD=10 qua TP ảoas a virtual TP (InpVirtualDcaTpEnable=true) |
| Tia (gom cụm)(cluster) | InpTiaProfitUSD=10, cụm ≥ 3 lệnhclusters of ≥ 3; partial close tắtpartial close off; rescuerescue 300 khi rổ lỗ ≥when the basket is down ≥ 500 |
| Khoá khi kẹtStuck lock | InpTiaBlockSameSideWhenStuck=true: một lệnh lỗ ≥ 500 hoặc sống ≥ 4 giờ là TP ảo ngừng chốt lẻone order down ≥ 500 or older than 4 hours stops all per-order exits |
| Global TP | InpGlobalTPUSD=10 — đóng sạch khi tổng rổ đạt mức nàyflattens everything once the basket reaches it |
Rủi ro của chính cấu hình nàyThe risk this config carries
- Không có cắt lỗ cứng. Max DD, Max loss/ngày, Global SL và Clear Stuck đều tắt. Lối thoát duy nhất của một rổ kẹt là Tia hoặc Global TP.
- Khoá khi kẹt là con dao hai lưỡi. Khi một lệnh đủ 4 giờ tuổi, EA ngừng chốt lẻ để dồn lời cho Tia; nhưng pass58 tắt Tia partial close, nên lúc đó chỉ còn Global TP mới đóng được rổ. Chi tiết: Workflow.
- Lot lệch khi trend đảo. Round cũ đã nhồi tới lot lớn, round mới bắt đầu lại từ 0.10 — phía kẹt luôn nặng hơn phía đang gỡ.
- Phòng thủ choppy bật muộn (≥ 24 lệnh), nên giai đoạn nhiễu đầu tiên vẫn vào lệnh bình thường.
- No hard stop. Max DD, max daily loss, Global SL and Clear Stuck are all off. A stuck basket's only exits are Tia or Global TP.
- The stuck lock cuts both ways. Once an order is 4 hours old the EA stops taking small profits so Tia can use them; but pass58 disables Tia partial close, so from then on only Global TP can flatten the basket. Details: Workflow.
- Lot imbalance after a flip. The old round already scaled up while the new one restarts at 0.10 — the stuck side always outweighs the recovering one.
- Choppy defense engages late (≥ 24 orders), so the first noisy stretch is traded normally.
Đọc tiếpRead next
- Giải thích chiến lược — cơ chế đầy đủ của EA (mọi thứ EA có thể làm).
- Config ổn định — từng giá trị trong
v1.42.b7-pass58.set. - Phân tích pass58 — số liệu backtest · So sánh backtest
- Workflow & logic — EA làm gì trong từng tick.
- Strategy explained — the EA's full mechanism set (everything it can do).
- Stable config — every value in
v1.42.b7-pass58.set. - pass58 analysis — backtest figures · Backtest comparison
- Workflow & logic — what the EA does on each tick.