forked from animatedread/Warrior_EA
AI Expert Advisor
- MQL5 78.8%
- HTML 11.2%
- C++ 7%
- C 2.3%
- Batchfile 0.3%
- Other 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
1. THE POOL FIX WAS LANDING ON A TOPOLOGY THAT COULD NOT SEE IT. ComputeFirstLayerWidth budgets against EstimatedInSampleBars, which counts this chart's own bars PLUS the training pool. On a COLD fleet start every chart derives and pins its topology BEFORE any chart has published a pool file - measured on the 18:13 start, model creation at 18:13:21 against a first publish at 18:13:48. All six sized as if training alone, wrote that into .cfg, and adopted it back on every later start even with the pool full. SP500 ran a first layer floored to 16 while adopting 30229 peer rows. Adopt-don't-compare exists to protect weights shaped by those sizes. It was also running for a model with NO .nnw, where there is nothing to protect and the .cfg is just a record of one unlucky moment. The four derived sizes are now re-measured when no weights exist. Safe on all three counts that matter: free (nothing to discard), cannot loop (once weights exist the .cfg is authoritative again), and cannot fragment the pool - the derived width is NOT in BuildModelFingerprint, which keys only on the FEATURE layout. Verified: field 2 of the fingerprint is LEGACY_HISTORY_BARS_SLOT, not the first-layer width. TO TAKE EFFECT the weights must be wiped while the TrainPool is KEPT - the census has to be non-empty at derivation time. A full wipe empties the pool and reproduces the original condition exactly. 2. THE KEEP-SCREEN LATCHED ON AN UNDERPOWERED SAMPLE. MI_MIN_SAMPLES is a floor for "can this be computed", and it was being used as the bar for "is this answer final". The screen fired on the first era clearing 200 rows and latched, measuring at 202-773 samples where a warm chart gives ~2065. Columns kept then tracked SAMPLE SIZE rather than information - EURUSD kept 0 of 49 at n=202, SP500 kept 15 at n=773, and the ordering across all six charts was very nearly monotone in n. A thin sample is still measured and printed, but it no longer closes the question: below MI_GOOD_SAMPLE_FRACTION of the target the result is labelled underpowered and a later era supersedes it, bounded by the same attempt budget. An underpowered screen that latches is worse than one that waits, because it looks like a result. Build tag -> fleet-pool-v2. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
| .claude | ||
| .clinerules | ||
| AI | ||
| Database | ||
| DirectML | ||
| docs | ||
| Enumerations | ||
| Expert | ||
| Market Descriptions | ||
| Marketing/Logo | ||
| Money | ||
| Panel | ||
| Scripts | ||
| Signals | ||
| Structures | ||
| System | ||
| Tests | ||
| Trailing | ||
| Variables | ||
| .gitignore | ||
| AI_NETWORK.md | ||
| cpu_directml.log | ||
| DATABASE.md | ||
| EXPERIMENTS.md | ||
| opencl.log | ||
| profiling.csv | ||
| README.md | ||
| REFACTOR_NOTES.md | ||
| SIGNALS.md | ||
| Warrior_EA.md | ||
| Warrior_EA.mq5 | ||
| Warrior_EA.mqproj | ||
| Warrior_EA_System_Overview.md | ||
Warrior_EA Project Overview
Description
Warrior_EA is a modular, AI/ML-ready MetaTrader 5 Expert Advisor designed for robust, production-grade trading. It integrates traditional and AI-driven signals, advanced money management, trailing stops, and a database/statistics subsystem for adaptive optimization.
Key Features
- AI/ML Integration: LSTM, PAI, and CONV neural network signals, with configurable feature pipelines and training options.
- Traditional Signals: Modular support for classic indicators (MA, MACD, RSI, etc.) and price action patterns.
- Money Management: Fixed lot, fixed risk, and intelligent/adaptive strategies.
- Trailing Stops: ATR-based, MA-based, Parabolic SAR, and more.
- Database/Statistics: Tracks trades, signals, and performance for optimization and research.
- Configurable Inputs: All major features and strategies are user-configurable via Inputs.mqh.
- Robust Initialization: Retry logic and error handling for all critical subsystems.
- Production-Ready: Designed for institutional and advanced retail use, with a focus on maintainability and extensibility.
Directory Structure
- AI/: Neural network and ML logic
- Database/: Database and statistics management
- Enumerations/: Enum and type definitions
- Expert/: Main EA orchestration and custom logic
- Money/: Money management strategies
- Signals/: Signal generation (AI and traditional)
- Structures/: Data structures for signals and trades
- System/: Utility and infrastructure modules
- Trailing/: Trailing stop strategies
- Variables/: Global input parameters and runtime variables
Getting Started
- Configure your desired strategies and features in
Variables/Inputs.mqh. - Compile
Warrior_EA.mq5in MetaEditor. - Attach to a chart and enable Algo Trading.
- Monitor logs and database/statistics for performance and optimization.
Modernization & AI/ML Roadmap
- Migrate all hard-coded signals to a configurable, feature-driven pipeline.
- Expand AI/ML subsystem with new models and training options.
- Enhance database/statistics for deeper analytics and automated optimization.
- Introduce unit and integration tests for all modules.
Documented April 2026. For subsystem details, see each directory's README.md and AI_NETWORK.md.