1
0
Fork 0
Warrior_EA/Expert
AnimateDread e8452913c0 feat: add swing-context feature with confirmed zigzag pivot
Introduce m_useSwingContext flag and FindConfirmedZigZagPivot method to compute normalized swing direction/magnitude/age features from the existing ADZigZag indicator. Only pivots that are at least m_swingConfirmationBars old are trusted, preventing lookahead bias. The SWING_SCAN_CAP_BARS macro limits backward scan depth. Default is off.
2026-07-19 11:04:38 -04:00
..
ADIndicatorTuner.mqh refactor(ExpertSignalAIBase): extract AutoTune param state into CADIndicatorTuner 2026-07-18 16:22:09 -04:00
ExpertCustom.mqh feat: add max-pooling and convolution OpenCL kernels, clean up barrier and signal code 2026-07-13 03:23:39 -04:00
ExpertMoneyCustom.mqh convert 2025-05-30 16:35:54 +02:00
ExpertSignalAIBase.mqh feat: add swing-context feature with confirmed zigzag pivot 2026-07-19 11:04:38 -04:00
ExpertSignalCustom.mqh refactor(MoneyIntelligent): replace streak-chasing lot sizing with fractional-Kelly criterion 2026-07-18 17:39:58 -04:00
README.md feat: Enhance README and documentation for Warrior_EA project 2026-04-20 19:28:34 -04:00

Expert/ Directory Documentation

ExpertCustom.mqh

  • Purpose: Defines the CExpertCustom class, a base class for custom expert advisors in the EA framework.
  • Inheritance: Inherits from CExpert (not shown here, likely a core MQL5/MetaQuotes class or defined elsewhere in the project).
  • Key Features:
    • Provides virtual event handlers for MQL5 events: OnTick, OnTimer, OnChartEvent, etc., allowing derived classes to implement custom trading logic.
    • Contains methods for initializing trading objects, handling series data, and managing trading events.
    • Designed for extensibility: users can derive their own expert logic by subclassing and overriding the provided virtual methods.
  • Modernization Note:
    • This class is a good candidate for further abstraction to support AI/ML-driven strategies. Consider introducing interfaces or abstract base classes for signal generation, money management, and risk control, allowing plug-and-play of traditional and AI/ML modules.
    • Ensure all event handlers are unit-testable and decoupled from hard-coded logic.

ExpertMoneyCustom.mqh

  • Purpose: Implements a custom money management class (CExpertMoneyCustom) for the EA, extending CExpertMoney.
  • Key Features:
    • CheckAndCorrectVolumeValue: Ensures trade volume is within broker constraints (min/max/step), adjusting and describing corrections.
    • CheckAndAdjustMoneyForTrade: Dynamically adjusts lot size to fit available margin, reducing lots if margin is insufficient, and handles errors gracefully.
  • Modernization Note:
    • This class is a good candidate for AI/ML-driven position sizing. Consider abstracting the logic to allow for ML-based risk and lot size optimization.
    • Ensure all adjustments are logged for transparency and auditability.

ExpertSignalAIBase.mqh

  • Purpose: Provides a base class (CExpertSignalAIBase) for AI/ML-driven signal generation, extending CExpertSignalCustom.
  • Key Features:
    • Integrates with the neural network/AI subsystem (Network.mqh).
    • Manages a wide range of indicator objects (Open, Close, High, Low, Volumes, AD, ADX, MACD, etc.) for feature extraction.
    • Supports dynamic configuration of neural network topology, training, and feature selection.
    • Implements methods for indicator initialization, data buffering, training, and topology persistence.
  • Modernization Note:
    • This is the main integration point for advanced ML/AI logic. Ensure all feature selection and training parameters are externally configurable.
    • Refactor to support plug-and-play feature pipelines and automated hyperparameter optimization.

ExpertSignalCustom.mqh

  • Purpose: Implements a custom signal logic class (CExpertSignalCustom) for the EA, extending CExpertSignal.
  • Key Features:
    • Adds database-driven signal tracking, pattern recognition, and trade record management.
    • Supports dynamic filter addition, ATR-based entry/exit logic, and advanced signal buffering.
    • Implements robust duplicate detection, trade status management, and event-driven signal processing.
  • Modernization Note:
    • This class is central to integrating traditional and AI/ML signals. Refactor to decouple hard-coded logic and support dynamic, testable signal pipelines.
    • Ensure all database operations are abstracted for testability and future migration to more advanced data stores.

(Other files in Expert/ will be documented as they are processed.)