Algo Forge — refactor total dari SniperGold SMC Pro+ (Waseem Shahrukh, https://www.mql5.com/en/code/75466). Engine 1: MTF data collector + cache index (selesai, unit test PASS=115070 FAIL=0). Engine 2: agen sinyal N/C/E/P (fuzzy). Engine 3: display. ML: LSTM + regime-switching.
  • Python 95.7%
  • MQL5 4%
  • MQL4 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-07 17:34:57 +07:00
docs P3-DATA-ENGINE-004: source-grammar correction + re-qualification (QUALIFIED) - spec 1.1.0 controlled amendment (Appendix C): G_TICKSTORY_MT5 six-col YYYYMMDD,HH:MM:SS,bid,ask,last,volume; compact timestamp; mandatory volume; last preserved via source-preservation sidecar (spec 8.6; CTS_V1 unchanged; G-4/G-5 intact); SHA effbaf2624cd46137c22a246fdabff4067052807b6b6224be464366bec4745d9 (machine-verified) - implementation: grammar registry, source_grammar config identity + fail-closed validation, compact timestamp parse, _parse_chunk_tickstory, preservation serialization + sidecars, certificate grammar_id + compact sniffing, init cert/config mismatch BLOCK, independent verifier v_parse_chunk_tickstory + preservation ids, evidence + verify_dataset preservation checks; ENGINE_VERSION 1.1.0, PARSER_V1.1 - CLI defect repair: status/resume on run-less dir exit 4 BLOCKED without traceback (P3-DE-003 NEW_ENGINE_DEFECT) + regression tests - qualification: unit, golden G01-G17, SG01-SG15 + e2e, property, adversarial, mutation 8/8, independent verifier dataset+run-complete ACCEPTED, legacy diff 0 unresolved legacy untouched, dataset-builder determinism, CLI E2E; VERDICT QUALIFIED - G-14 unchanged BLOCKED/NOT AUTHORIZED; no real-data ingestion; no workload 46; no chunk 760+; legacy checkpoint 759/18442355762 untouched 2026-09-07 17:34:57 +07:00
engine P3-DATA-ENGINE-004: source-grammar correction + re-qualification (QUALIFIED) - spec 1.1.0 controlled amendment (Appendix C): G_TICKSTORY_MT5 six-col YYYYMMDD,HH:MM:SS,bid,ask,last,volume; compact timestamp; mandatory volume; last preserved via source-preservation sidecar (spec 8.6; CTS_V1 unchanged; G-4/G-5 intact); SHA effbaf2624cd46137c22a246fdabff4067052807b6b6224be464366bec4745d9 (machine-verified) - implementation: grammar registry, source_grammar config identity + fail-closed validation, compact timestamp parse, _parse_chunk_tickstory, preservation serialization + sidecars, certificate grammar_id + compact sniffing, init cert/config mismatch BLOCK, independent verifier v_parse_chunk_tickstory + preservation ids, evidence + verify_dataset preservation checks; ENGINE_VERSION 1.1.0, PARSER_V1.1 - CLI defect repair: status/resume on run-less dir exit 4 BLOCKED without traceback (P3-DE-003 NEW_ENGINE_DEFECT) + regression tests - qualification: unit, golden G01-G17, SG01-SG15 + e2e, property, adversarial, mutation 8/8, independent verifier dataset+run-complete ACCEPTED, legacy diff 0 unresolved legacy untouched, dataset-builder determinism, CLI E2E; VERDICT QUALIFIED - G-14 unchanged BLOCKED/NOT AUTHORIZED; no real-data ingestion; no workload 46; no chunk 760+; legacy checkpoint 759/18442355762 untouched 2026-09-07 17:34:57 +07:00
evidence P3-S25.1AR: real 512 MiB / 24-worker workload (chunks 738-759) committed; checkpoint advanced to byte 18442355762; docs v36/v38; CHUNK 760 NOT AUTHORIZED 2026-09-06 15:20:14 +07:00
ml P3-S25.1AR: real 512 MiB / 24-worker workload (chunks 738-759) committed; checkpoint advanced to byte 18442355762; docs v36/v38; CHUNK 760 NOT AUTHORIZED 2026-09-06 15:20:14 +07:00
MQL5 feat: implement canonical candidate setup layer 2026-08-22 23:31:22 +07:00
qualification P3-DATA-ENGINE-004: source-grammar correction + re-qualification (QUALIFIED) - spec 1.1.0 controlled amendment (Appendix C): G_TICKSTORY_MT5 six-col YYYYMMDD,HH:MM:SS,bid,ask,last,volume; compact timestamp; mandatory volume; last preserved via source-preservation sidecar (spec 8.6; CTS_V1 unchanged; G-4/G-5 intact); SHA effbaf2624cd46137c22a246fdabff4067052807b6b6224be464366bec4745d9 (machine-verified) - implementation: grammar registry, source_grammar config identity + fail-closed validation, compact timestamp parse, _parse_chunk_tickstory, preservation serialization + sidecars, certificate grammar_id + compact sniffing, init cert/config mismatch BLOCK, independent verifier v_parse_chunk_tickstory + preservation ids, evidence + verify_dataset preservation checks; ENGINE_VERSION 1.1.0, PARSER_V1.1 - CLI defect repair: status/resume on run-less dir exit 4 BLOCKED without traceback (P3-DE-003 NEW_ENGINE_DEFECT) + regression tests - qualification: unit, golden G01-G17, SG01-SG15 + e2e, property, adversarial, mutation 8/8, independent verifier dataset+run-complete ACCEPTED, legacy diff 0 unresolved legacy untouched, dataset-builder determinism, CLI E2E; VERDICT QUALIFIED - G-14 unchanged BLOCKED/NOT AUTHORIZED; no real-data ingestion; no workload 46; no chunk 760+; legacy checkpoint 759/18442355762 untouched 2026-09-07 17:34:57 +07:00
repaired docs: standardize project markdown to English 2026-08-22 17:21:46 +07:00
tests P3-DATA-ENGINE-004: source-grammar correction + re-qualification (QUALIFIED) - spec 1.1.0 controlled amendment (Appendix C): G_TICKSTORY_MT5 six-col YYYYMMDD,HH:MM:SS,bid,ask,last,volume; compact timestamp; mandatory volume; last preserved via source-preservation sidecar (spec 8.6; CTS_V1 unchanged; G-4/G-5 intact); SHA effbaf2624cd46137c22a246fdabff4067052807b6b6224be464366bec4745d9 (machine-verified) - implementation: grammar registry, source_grammar config identity + fail-closed validation, compact timestamp parse, _parse_chunk_tickstory, preservation serialization + sidecars, certificate grammar_id + compact sniffing, init cert/config mismatch BLOCK, independent verifier v_parse_chunk_tickstory + preservation ids, evidence + verify_dataset preservation checks; ENGINE_VERSION 1.1.0, PARSER_V1.1 - CLI defect repair: status/resume on run-less dir exit 4 BLOCKED without traceback (P3-DE-003 NEW_ENGINE_DEFECT) + regression tests - qualification: unit, golden G01-G17, SG01-SG15 + e2e, property, adversarial, mutation 8/8, independent verifier dataset+run-complete ACCEPTED, legacy diff 0 unresolved legacy untouched, dataset-builder determinism, CLI E2E; VERDICT QUALIFIED - G-14 unchanged BLOCKED/NOT AUTHORIZED; no real-data ingestion; no workload 46; no chunk 760+; legacy checkpoint 759/18442355762 untouched 2026-09-07 17:34:57 +07:00
.gitignore P3-DATA-ENGINE-002: Data Engine v1 implementation + qualification suite (QUALIFIED) 2026-09-07 14:15:25 +07:00
LICENSE Algo Forge: refactor total dari SniperGold SMC Pro+ (Waseem Shahrukh, https://www.mql5.com/en/code/75466) 2026-08-21 09:40:40 +07:00
README.md docs: establish AI Assistant document authority v2 2026-08-29 07:09:39 +07:00
sniper-data.cmd P3-DATA-ENGINE-002: Data Engine v1 implementation + qualification suite (QUALIFIED) 2026-09-07 14:15:25 +07:00
sniper-data.py P3-DATA-ENGINE-002: Data Engine v1 implementation + qualification suite (QUALIFIED) 2026-09-07 14:15:25 +07:00

SniperGold_ML — RESEARCH REPOSITORY

DOCUMENT ROLE : PUBLIC_SUMMARY
AUTHORITY     : PUBLIC / HUMAN SUMMARY ONLY. This README MUST NEVER override
                canonical machine evidence, CURRENT_PROJECT_STATE.md,
                CURRENT_DECISION_GATE.md, or frozen contracts. The section
                below is the CURRENT research status; the Algo Forge content
                further down is LEGACY / HISTORICAL and is not current.

CURRENT AUTHORITATIVE RESEARCH STATUS

Session lineage : P3 (research governance) on this authoritative workspace.
Authoritative workspace :
  D:\TradingTerminal\HFM Metatrader 5\MQL5\Shared Projects\SniperGold_ML_authoritative
Repository      : https://forge.mql5.io/chiki2bum2/SniperGold_ML.git
Branch          : main

CURRENT state   : P3-S25.1 Stage-B — CHUNK 10 COMPLETE
Research status : External Tickstory basis validation IN PROGRESS
                  (run P3_S251_REAL_TICK_RUN_001, real chunks 0-10 committed,
                   chunk 11 next @ byte offset 163,578,081; full 34.5 GB
                   dataset NOT complete)
Conclusion      : P3-S24 — CURRENT EDGE NOT DEMONSTRATED
Chunk policy    : SAFE_MAX_CHUNK_SIZE = 24 MiB (invariance + 10/10 mutations);
                  SAFE_CHUNKS_PER_TURN = NOT ESTABLISHED (P3-S25.1D multi-chunk
                  benchmark OPEN)
Next action     : P3-S25.1 Stage-B CHUNK 11 ONLY at SAFE_MAX 24 MiB from
                  offset 163,578,081 (explicit owner authorization required)

Read (in this order):
  docs/CURRENT_PROJECT_STATE.md
  docs/CURRENT_DECISION_GATE.md
  docs/AI_ASSISTANT_SESSION_START_PROTOCOL_v2.md
  newest docs/SESSION_HANDOVER_*.md

This section is the CURRENT research status and does NOT reflect any deployed trading model or any proven predictive edge.


LEGACY / HISTORICAL IMPLEMENTATION (kept for reference; NOT current)

The following describes the original "Algo Forge" refactor (Engines 1-3 + hybrid ML). It is legacy/historical information, not the current research conclusion. The legacy model AUC (0.627/0.621) applied only to the original training feed and is NOT a current or deployable edge claim.


Algo Forge

Full refactor of SniperGold SMC Pro+ — 3-engine architecture + hybrid ML.

SOURCE ATTRIBUTION (MANDATORY)

  • This project is a total refactor (new architecture), not a direct copy.
  • Source inspiration & display:
    • SniperGold SMC Pro+https://www.mql5.com/en/code/75466
    • Copyright: Waseem Shahrukh
  • Attribution is stated in the header of every file, this README, and the "Algo Forge" publication.

Baseline (old project — reference, do not delete)

Component Status
SniperGold_SMC_ProPlus_v4_4.mq5 Calibrated 2-head ML; test AUC LONG 0.6270 / SHORT 0.6207
SniperGold_SMC_ProPlus_v4_5.mq5 MTF structure + index cache (0 errors / 0 warnings)
SniperGold_ML.mqh MLP 19→12→2 + Platt calibration (not reused in AlgoForge)

Target Architecture (3 Engines + ML)

Engine Function Status
Engine 1 MTF bar collector + reusable index cache (closed-bar lock, chart-TF independent) Complete (Phase 1, 2026-08-21)
Engine 2 4 independent signal agents N/C/E/P (dynamic-weight fuzzy) + separate aggregator Complete (Phase 2, 2026-08-21)
Engine 3 Display like the original 75466 code (reads Engine 1–2 output only) Complete (Phase 3, 2026-08-21)
ML LSTM + Regime-Switching (MSM/GARCH) in front of LSTM, ~20-year sample, separate engine; walk-forward + bootstrap CI + multi-seed; deploy only if it beats the baseline No-Go (Phase 4): 2-layer LSTM + regime LOST to the baseline (dAUC −0.0196/−0.0134); baseline MLP 0.627/0.621 REMAINS deployed

Agent timeframe parameters: HARDCODED AF_E2_TF_S1..S4 = H4/M30/M15/M3 (N/C/E/P) — manual inputs InpHtfS1..S4 removed; InpDispTF (Engine 3, default = chart) remains an input.

Official old-project documents: Shared Projects\SniperGold_ML\REFACTOR_ALGOFORGE.md.

Folder Structure (code)

MQL5\
├── Include\AlgoForge\
│   ├── AF_Attribution.mqh           # attribution header (MANDATORY, first include)
│   ├── AF_Defines.mqh               # Engine 1–3 constants & result codes
│   ├── AF_Engine1_MTFData.mqh       # Engine 1: class AFEngine1MTF + AFBar
│   ├── AF_Engine2_Agents.mqh        # Engine 2: 4 agents N/C/E/P + fuzzy
│   ├── AF_Engine2_Aggregator.mqh    # Engine 2: aggregator + facade AFEngine2Signals
│   ├── AF_Engine2_Display.mqh       # Engine 2: AFDisplayData builder (display context)
│   └── AF_Engine3_Render.mqh        # Engine 3: pure renderer (draws only)
├── Experts\
│   ├── AlgoForge_Engine1_UnitTest.mq5  # Engine 1 unit test (Strategy Tester)
│   ├── AlgoForge_Engine2_UnitTest.mq5  # Engine 2 unit test (Strategy Tester)
│   ├── AlgoForge_Engine3_UnitTest.mq5  # Engine 3 unit test (Strategy Tester)
│   └── AlgoForge_Backtest_Baseline.mq5 # baseline MLP backtest (mode 0 = CSV prob/AUC,
│                                       #   mode 1 = trade net-of-spread; internal features,
│                                       #   data source Engine 1; NOT iCustom)
├── Indicators\AlgoForge\
│   └── AF_Engine3_Display.mq5         # Engine 3: display indicator (chart)
└── Profiles\Tester\
    ├── AlgoForge_Engine1_UnitTest.XAUUSD.M15.*.ini
    ├── AlgoForge_Engine2_UnitTest.XAUUSD.M15.*.ini
    ├── AlgoForge_Engine3_UnitTest.XAUUSD.M15.*.ini
    └── AlgoForge_Backtest_Baseline.XAUUSD.M15.*.ini

Project documentation: Shared Projects\AlgoForge\ (README, DESIGN, PROGRESS).

Session Status

Date Phase Result
2026-08-21 0–1 Project structure + attribution; Engine 1 complete; compile 0/0; unit tests PASS=115070 FAIL=0 (20 days) & PASS=8870 FAIL=0 (verification)
2026-08-21 2 Engine 2 complete (4 agents N/C/E/P + fuzzy + aggregator); compile 0/0; unit tests PASS=21534 FAIL=0 (20 days) & PASS=9942 FAIL=0 (10-day verbose)
2026-08-21 3 Engine 3 complete (structure/zone/signal/dashboard display, reads Engine 1–2 output only); compile 0/0; unit test PASS=21528 FAIL=0 (20 days)
2026-08-21 4 Hybrid ML 2-layer LSTM + regime: GATE No-Go (dAUC LONG −0.0196 / SHORT −0.0134 vs 0.627/0.621; negative CI; 0/5 seeds); baseline MLP REMAINS deployed
2026-08-21 5 Verification & publication: compile 0/0 + Engine 1–3 unit-test regression (PASS 115070/21534/21528, FAIL=0); honest net-of-spread baseline backtest (CSV/AUC: LONG 0.5305 / SHORT 0.5487 on the XAUUSD feed; 308 trades, PF 1.32)

Details: see PROGRESS.md and REFACTOR_ALGOFORGE.md §10–13, §19–21.