# MQLArticles A comprehensive collection of MQL5 implementations for risk management and position management in algorithmic trading. This repository contains the source code from articles published on MQL5.com by nique_372. ## Repository Contents ### Project Structure # Repository Structure | Folder | Description | |---------|-------------| | **Defines** | Markdown files containing optional defines to activate or increase logging verbosity for specific classes in the repository. | | **Examples** | Basic examples that implement various libraries from the MQLArticles repository, such as risk management, position management, etc. | | **Images** | Screenshots and visual assets from repository examples (breakeven manager, lot size calculator, order blocks indicator). | | **IndicatorsCts** | Wrapper library for implementing technical indicators. | | **Ob** | Order Blocks indicator implementation and example Expert Advisors from published articles (author: nique_372). | | **PosMgmt** | Position management libraries including:
- Breakeven management
- Partial position closure
- Conditional partial closure with indicator-based conditions | | **RM** | Complete Risk Management (RM) library modules. | | **Utils** | Core utility library for EAs, indicators, and libraries. | **Sets** | Preset configuration files (.set) used in articles published by nique_372. | | **Strategy** | Strategy implementation framework for the MQLArticles ecosystem. | --- ## Implemented Article Series ### Risk Management | Part | Main Topic | Article Link | |-------|----------------|-------------------| | **Part 1** | Risk management fundamentals | [[EN]](https://www.mql5.com/en/articles/16820) | | **Part 2** | Lot size calculation | [[ES]](https://www.mql5.com/es/articles/16985) | | **Part 3** | Base class construction | [[ES]](https://www.mql5.com/es/articles/17249) | | **Part 4** | Completing key functions of the CRiskManagement class | [[ES]](https://www.mql5.com/es/articles/17508) | | **Part 5** | Integrating risk management into an EA (Order Block) | [[ES]](https://www.mql5.com/es/articles/17640) | > **Important Update**: The RiskManagement library has been completely renovated since the last publication (part 5). ### Position Management - Breakeven | Part | Focus | Article Link | |-------|---------|-------------------| | **Part 1** | Base class and breakeven by fixed points | [[ES]](https://www.mql5.com/es/articles/17957) | | **Part 2** | Breakeven by ATR and RRR | [[ES]](https://www.mql5.com/es/articles/18111) | ### Position Management - Partial Closes | Focus | Article Link | |-------|--------------------| | Implementation of partial closes in MQL5 | [[ES]](https://www.mql5.com/es/articles/19682) | ### Position Management - Conditional partial closure | Focus | Article Link | |-------|--------------------| | Implementation of the base class in MQL5 | [[ES]](https://www.mql5.com/es/articles/20048) | ### Order Block Indicator | Part | Focus | Article Link | |-------|---------|-------------------| | **Part 1** | Initial implementation of Order Blocks in an indicator | [[EN]](https://www.mql5.com/en/articles/15899) | | **Part 2** | Signal implementation in the Order Block indicator | [[EN]](https://www.mql5.com/en/articles/16268) | ## Examples - Examples\\GUI\\BE\\Ea.mq5 ![Imagen](./Images/breakeven_manager.png) - Examples\\GUI\\Risk_Management_Panel.mq5 ![Imagen](./Images/lot_size_calculator.png) - Ob\\Indicator\\OrderBlockIndPart2.mq5 ![Imagen](./Images/ob_ind.png) ## Installation Methods - Clone the git repository into shared projects via cmd. - Contact me privately on MQL5 chats (user: nique_372) to be added as a collaborator with your MQL5 nickname (read-only access), which will make the repository automatically appear in your Shared Projects folder. - Fork the repository.