forked from animatedread/Warrior_EA
| Filename | Latest commit message | Latest commit date |
|---|---|---|
User design (2026-08-19): 'remove the enum menu that selects neural networks... individual inputs for every NN just like classic signals... the META NN should be integrated into the voting decision pipeline when enabled... as a bonus meta labelling is applied to enabled NNs.' - AI_CHOICE is GONE (tombstoned per the stale-.set doctrine). Use_MLP/Use_CONV/Use_LSTM/ Use_CONVLSTM are ordinary bools like the classic votes; the ensemble arithmetic adapts to any subset because the consensus divisor is the enabled capable weight. Two or more enabled = ensemble (|ENS1 token + joint gate, exactly the old AI_HYBRID fingerprints, so existing weight files keep loading); one = the old solo preset; none = classic-only. - Use_MetaLabeling un-couples META from the direction NNs (the old selector made them mutually exclusive). S3 ships: CSignalMETA::LiveMetaGate scores each vote-cleared entry (shared window at bar 1 + proposal descriptor: side, net vote, live geometry, spread/ATR; pattern one-hot ZEROED - ranking, not calibrated probability, documented in the body) and vetoes below the cost-adjusted break-even. Entries only; fail-open everywhere, loudly. - COEXISTENCE HAZARDS closed: VoteCapableWeight()=0 and ProspectiveVote()=false for the meta target - solo-only until today, a trained META would otherwise sit in the consensus divisor as a permanent abstainer and shrink every vote by its module weight. - CERTIFIED == TRADED: the ensemble era verdict replays the identical veto through the same g_warriorMetaGate pointer over its OOS fired bars (bar re-resolved from the row's own time; fail-open counted as fires and reported: 'metaGate: N approved, M vetoed, K unscored'). The overlay deliberately does NOT replay it (veto-filter-in-replay class, calendar-cliff precedent) - documented at the sweep site. Solo charts' own gate does not model the veto - the standing solo-gate caveat, documented at the input. - DB continuity: the pattern/journal DB fingerprint's first slot was (int)AIType; DbLegacyAiSlot() maps every legacy-expressible config to its OLD value (new 2-3 member subsets get 100+bitmask, outside the legacy range) so no existing database re-keys. filterID becomes the enabled roster via one EnabledNNSummary(). - HUD: the meta line shows the gate (armed/(trn), last P vs BE, ok/veto tally); the armed/disarmed announcement fires on state change via one latch (MetaGateArmedNow), not only when an entry happens to be proposed. NOT COMPILED - user compiles in MetaEditor. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
| .. | ||
| README.md | ||
| SignalCONV.mqh | ||
| SignalHYBRID.mqh | ||
| SignalIchimoku.mqh | ||
| SignalLSTM.mqh | ||
| SignalMA.mqh | ||
| SignalMACD.mqh | ||
| SignalMETA.mqh | ||
| SignalNewsFilter.mqh | ||
| SignalPAI.mqh | ||
| SignalRiskGuard.mqh | ||
| SignalRSI.mqh | ||
| Signals.mqh | ||
| SignalSessionFilter.mqh | ||
Signals Subsystem (Signals/)
Overview
The Signals/ directory contains all trade signal generation logic for the Warrior EA. It includes both traditional indicator-based signals and advanced AI/ML-driven signals. Each signal is encapsulated in its own class, supporting modularity and extensibility.
Key Components
Signals.mqh
- Main orchestration file for signal modules.
- Includes both traditional and AI/ML signal classes.
- Facilitates integration of filters (news, session, etc.) and advanced signals.
AI/ML-Driven Signals
- SignalLSTM.mqh: Implements an LSTM-based neural network signal generator. Integrates with the AI subsystem, supports model training, loading, and inference. Designed for advanced, data-driven strategies.
- SignalPAI.mqh: Implements a Perceptron AI-based signal generator. Inherits from
CExpertSignalAIBase. Provides methods for initializing, training, and using a perceptron neural network for trade signal generation. Supports dynamic configuration, indicator integration, and modular AI/ML pipeline features. Designed for advanced, data-driven strategies and easy integration into the EA's AI subsystem.
Traditional Indicator-Based Signals
- SignalMA.mqh: Moving Average signal generator.
- SignalMACD.mqh: MACD oscillator signal generator.
- SignalRSI.mqh: Relative Strength Index signal generator.
- SignalStoch.mqh: Stochastic oscillator signal generator.
- SignalPB.mqh: Pin Bar pattern signal generator.
- SignalNewsFilter.mqh: News event filter for signals, configurable by impact and lookback period.
- SignalSessionFilter.mqh: Session-based filter (London, New York, Tokyo sessions).
Individual Signal Modules
Below is a comprehensive list of all signal modules in the Signals/ directory, with a brief description of each:
- SignalAC.mqh: (Removed)
- SignalAO.mqh: (Removed)
- SignalCCI.mqh: (Removed)
- SignalCONV.mqh: Convolutional AI signal. Uses a neural network for advanced pattern recognition.
- SignalDTDB.mqh: (Removed)
- SignalEB.mqh: (Removed)
- SignalIB.mqh: (Removed)
- SignalIchimoku.mqh: Ichimoku Kinko Hyo classic vote, written from scratch (no standard-library module exists). 12 patterns numbered weakest-to-strongest, covering the full repertoire: price/cloud bias, projected cloud colour and full Chikou Span confirmation (models 0-2, all at the standard-library floor weight of 10 since each is a standing state rather than a trigger); the TK cross graded weak/neutral/strong by cloud position (3/5/10, weights 10/40/90); Kumo twist (4); Kijun-sen cross and bounce (6/7); Kumo breakout and thin-cloud breakout (8/9); and Sanyaku Kōten/Gyakuten at 100 (11). Its class comment documents MT5's draw-shift-only buffer convention and the resulting lookahead hazard.
- SignalITF.mqh: Intraday Time Filter. Filters signals based on time-of-day and day-of-week.
- SignalLSTM.mqh: LSTM AI signal. Uses a recurrent neural network for sequence-based prediction.
- SignalMA.mqh: Moving Average classic vote (unified
ADMovingAveragecustom indicator; 4 patterns). - SignalMACD.mqh: MACD oscillator classic vote, ported from the MQL5 standard library. 6 patterns including single and double price/oscillator divergence — the only divergence model in the classic set.
- SignalNewsFilter.mqh: (Filters trading signals based on economic news events and impact levels. Configurable lookback window and impact threshold.)
- SignalPAI.mqh: Implements a Perceptron AI-based signal generator. Inherits from
CExpertSignalAIBase. Provides methods for initializing, training, and using a perceptron neural network for trade signal generation. Supports dynamic configuration, indicator integration, and modular AI/ML pipeline features. Designed for advanced, data-driven strategies and easy integration into the EA's AI subsystem. - SignalPB.mqh: (Removed)
- SignalRSI.mqh: RSI classic vote (4 patterns).
- SignalRVI.mqh: (Removed)
- Signals.mqh: Main orchestration file for all signals.
- SignalSAR.mqh: (Removed)
- SignalSessionFilter.mqh: (Removed)
- SignalStoch.mqh: (Removed)
- SignalWPR.mqh: (Removed)
Integration Notes
- All signals derive from a common base (typically
CExpertSignalCustomorCExpertSignalAIBase). - Modular design allows for easy addition/removal of signals and filters.
- Migration to a fully AI/ML-driven pipeline is recommended for future-proofing and improved performance.
- Some files (e.g., SignalPAI.mqh) may require conversion or external review due to non-text format.
Documented April 2026. For AI/ML migration and modernization, see AI_NETWORK.md and project roadmap.