MQLArticles/README.md

92 行
3.8 KiB
Markdown

2025-09-22 14:56:48 +00:00
# MQLArticles
2025-10-17 22:03:34 +00:00
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.
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
## Repository Contents
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
### Project Structure
2025-10-08 13:00:59 +00:00
2025-12-21 17:55:44 +00:00
# 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:<br>- Breakeven management<br>- Partial position closure<br>- Conditional partial closure with indicator-based conditions |
| **RM** | Complete Risk Management (RM) library modules. |
| **Utils** | Core utility library for EAs, indicators, and libraries.
2025-12-21 17:56:57 +00:00
| **Sets** | Preset configuration files (.set) used in articles published by nique_372. |
2025-12-21 17:55:44 +00:00
| **Strategy** | Strategy implementation framework for the MQLArticles ecosystem. |
---
2025-10-08 13:00:59 +00:00
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
## Implemented Article Series
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
### Risk Management
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
| 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) |
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
> **Important Update**: The RiskManagement library has been completely renovated since the last publication (part 5).
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
### Position Management - Breakeven
2025-09-22 17:09:08 +00:00
2025-10-17 22:03:34 +00:00
| Part | Focus | Article Link |
2025-09-22 17:09:08 +00:00
|-------|---------|-------------------|
2025-10-17 22:03:34 +00:00
| **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) |
2025-09-22 17:09:08 +00:00
2025-10-17 22:03:34 +00:00
### Position Management - Partial Closes
| Focus | Article Link |
|-------|--------------------|
2025-10-17 22:04:18 +00:00
| Implementation of partial closes in MQL5 | [[ES]](https://www.mql5.com/es/articles/19682) |
2025-09-22 19:14:33 +00:00
2025-09-22 14:56:48 +00:00
2025-12-13 17:33:45 +00:00
### Position Management - Conditional partial closure
| Focus | Article Link |
|-------|--------------------|
| Implementation of the base class in MQL5 | [[ES]](https://www.mql5.com/es/articles/20048) |
2025-10-17 22:03:34 +00:00
### Order Block Indicator
2025-09-22 14:56:48 +00:00
2025-10-17 22:03:34 +00:00
| 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) |
2025-09-22 14:50:12 +00:00
2025-09-22 13:42:25 +00:00
2025-11-29 01:42:56 +00:00
## Examples
- Examples\\GUI\\BE\\Ea.mq5
2025-11-29 01:48:25 +00:00
![Imagen](./Images/breakeven_manager.png)
2025-11-29 01:42:56 +00:00
- Examples\\GUI\\Risk_Management_Panel.mq5
2025-11-29 01:48:25 +00:00
![Imagen](./Images/lot_size_calculator.png)
2025-11-29 01:42:56 +00:00
- Ob\\Indicator\\OrderBlockIndPart2.mq5
2025-11-29 01:51:44 +00:00
![Imagen](./Images/ob_ind.png)
2025-11-29 01:42:56 +00:00
2025-10-17 22:03:34 +00:00
## Installation Methods
- Clone the git repository into shared projects via cmd.
2025-12-13 17:33:45 +00:00
- 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.
2025-10-17 22:03:34 +00:00
- Fork the repository.