- Updated README.md with project overview, key features, directory structure, getting started guide, and modernization roadmap. - Added AI_NETWORK.md detailing the neural network and AI/ML infrastructure, including architecture, components, usage patterns, and next steps. - Introduced DATABASE.md for the Database module, outlining key components, design highlights, usage patterns, and future enhancements. - Created README.md files for Enumerations, Expert, Money, Signals, Structures, System, Trailing, Variables directories, detailing their purpose, key components, and integration notes. - Documented the Signals subsystem, emphasizing modularity, extensibility, and AI/ML readiness. - Added comprehensive descriptions for individual signal modules in Signals/ directory. - Established clear integration notes and recommendations for future improvements across all modules.
45 行
1.8 KiB
Markdown
45 行
1.8 KiB
Markdown
# Money Management Subsystem (Money/)
|
|
|
|
## Overview
|
|
The Money/ directory contains all money management logic for the Warrior EA. It provides multiple strategies for position sizing, ranging from simple fixed lots to adaptive, streak-based approaches. Each strategy is encapsulated in its own class and can be selected/configured as needed.
|
|
|
|
## Components
|
|
|
|
### Money.mqh
|
|
- Aggregates all money management strategies.
|
|
- Includes: MoneyFixedRisk, MoneyFixedLot, MoneyIntelligent.
|
|
- Entry point for money management logic selection.
|
|
|
|
### MoneyFixedLot.mqh
|
|
- **Class:** `CMoneyFixedLot`
|
|
- **Purpose:** Fixed lot size per trade.
|
|
- **Key Features:**
|
|
- User-defined lot size (`m_lots`).
|
|
- Validates lot size against symbol min/max/step constraints.
|
|
- Simple, robust, suitable for static position sizing.
|
|
|
|
### MoneyFixedRisk.mqh
|
|
- **Class:** `CMoneyFixedRisk`
|
|
- **Purpose:** Risk-based position sizing.
|
|
- **Key Features:**
|
|
- Calculates lot size based on account balance and risk percentage (`m_percent`).
|
|
- Ensures risk per trade is controlled.
|
|
- Handles both long and short positions.
|
|
- Validates margin and volume constraints.
|
|
|
|
### MoneyIntelligent.mqh
|
|
- **Class:** `CMoneyIntelligent`
|
|
- **Purpose:** Adaptive, streak-based money management.
|
|
- **Key Features:**
|
|
- Dynamically adjusts lot size based on trade history (winning/losing streaks).
|
|
- Configurable aggressiveness via `m_factor`.
|
|
- Integrates risk-based sizing and optimization.
|
|
- Suitable for advanced, AI/ML-driven strategies.
|
|
|
|
## Integration Notes
|
|
- All strategies derive from a common base (`CExpertMoneyCustom`).
|
|
- Designed for modularity and easy extension.
|
|
- Can be further enhanced with AI/ML-driven logic for dynamic risk and position sizing.
|
|
|
|
---
|
|
*Documented April 2026. For modernization and AI/ML integration, see AI_NETWORK.md and project roadmap.*
|