No description
|
|
||
|---|---|---|
| Defines | ||
| Examples | ||
| Images | ||
| IndicatorsCts | ||
| Ob | ||
| PosMgmt | ||
| RM | ||
| Sets/Article_19682 | ||
| Strategy | ||
| Utils | ||
| MQLArticles.mqproj | ||
| README.md | ||
| requirements.txt | ||
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] |
| Part 2 | Lot size calculation | [ES] |
| Part 3 | Base class construction | [ES] |
| Part 4 | Completing key functions of the CRiskManagement class | [ES] |
| Part 5 | Integrating risk management into an EA (Order Block) | [ES] |
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] |
| Part 2 | Breakeven by ATR and RRR | [ES] |
Position Management - Partial Closes
| Focus | Article Link |
|---|---|
| Implementation of partial closes in MQL5 | [ES] |
Position Management - Conditional partial closure
| Focus | Article Link |
|---|---|
| Implementation of the base class in MQL5 | [ES] |
Order Block Indicator
| Part | Focus | Article Link |
|---|---|---|
| Part 1 | Initial implementation of Order Blocks in an indicator | [EN] |
| Part 2 | Signal implementation in the Order Block indicator | [EN] |
Examples
- Examples\GUI\BE\Ea.mq5
- Examples\GUI\Risk_Management_Panel.mq5
- Ob\Indicator\OrderBlockIndPart2.mq5
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.


