주시
1
0
포크
이미 MQLArticles을(를) 포크했습니다
0
원본 프로젝트 nique_372/MQLArticles
MQLArticles/README.md
140 라인
7.2 KiB
Markdown
Niquel Mendoza
2026-02-27 03:02:46 +00:00
<p align="center">
Niquel Mendoza
2026-02-27 03:19:00 +00:00
<img src="./Images/MQLArticles.png" alt="MQLArticles Logo" width="1150" height="175"/>
Niquel Mendoza
2026-02-27 03:02:46 +00:00
</p>
Niquel Mendoza
2026-02-27 02:43:29 +00:00
Niquel Mendoza
2025-09-22 14:56:48 +00:00
Niquel Mendoza
2026-02-27 03:02:46 +00:00
<p align="center">
Nique_372
2026-10-25 12:37:04 -05:00
MQLArticles is a repository that contains the basic structure of the complete framework by Leo\Nique_372 (TradeSystemsNique - TSN),
in addition to containing the codes that nique_372 implemented in his MQL5 articles (Ict, Risk Management, Position Management).
Niquel Mendoza
2026-02-27 03:19:00 +00:00
</p>
<p align="center">
<img src="https://img.shields.io/badge/Language-MQL5-1B6CA8?style=flat-square"/>
<img src="https://img.shields.io/badge/Platform-MetaTrader%205-0D1B2A?style=flat-square"/>
<img src="https://img.shields.io/badge/Author-nique__372-C9D6DF?style=flat-square&logoColor=white"/>
<img src="https://img.shields.io/badge/Articles-mql5.com-1B6CA8?style=flat-square"/>
Niquel Mendoza
2026-02-27 03:02:46 +00:00
</p>
Niquel Mendoza
2025-09-22 14:56:48 +00:00
Niquel Mendoza
2026-02-27 12:46:16 +00:00
---
## Main features
Nique_372
2026-09-06 11:15:27 -05:00
> MQLArticles is not a single library: it's an ecosystem of ~13 independent modules (several used in production within the TSN ecosystem). Each folder in the table below is its own library, with its own detailed README inside the folder — this section only summarizes what each one solves.
| Module | What it solves |
|--------|--------------|
Nique_372
2026-10-29 22:37:49 -05:00
| **[Account](./Account)** | Everything about the trading account: risk management, live account status and money history — see submodules below. |
|  [Account/RM](./Account/RM/README.md) | Risk management: lot size calculation, dynamic SL/TP, max loss/profit limits with automatic position closing. |
|  [Account/MoneyStatus](./Account/MoneyStatus) | Live account state (balance, equity, open positions and their events) and tickets tables; the base that RM and the order utils build on. |
|  [Account/MoneyHistory](./Account/MoneyHistory) | Money-history helpers: position commission, profit of a position, net profit since a date (by magic number). |
|  [Account/OrderUtils](./Account/OrderUtils) | OCO (one-cancels-other) orders and an orders gestor. |
Nique_372
2026-10-25 12:35:00 -05:00
| **[PosMgmt](./PosMgmt/README.md)** | Open position management: breakeven (by fixed points, ATR or RRR), partial closes by volume, and partial closes conditioned on indicators (RSI, etc.), TrailingStop (many types, ema, ict-swing, etc..). |
Nique_372
2026-09-06 11:15:27 -05:00
| **[Strategy](./Strategy/README.md)** | Framework for building EAs by composition: chainable entry filters (RSI, Stochastic, Bands, SuperTrend...), a text-based logic rule engine, and time filters (day/year). |
| **[Utils](./Utils/README.md)** | Core of cross-cutting utilities used by the rest of the ecosystem — see submodules below. |
Nique_372
2026-10-22 10:28:48 -05:00
|  [Utils/FA](./Utils/FA/README.md) | Shared building blocks: ATR, new-bar detection, ATR/points diffs, day/week/month events. |
|   [Utils/SetFiles](./Utils/SetFiles/README.md) | Programmatic generation, loading and editing of .set files (EA parameters). |
|   [Utils/File](./Utils/File/README.md) | Folder operations: clean and encrypt/decrypt whole folders. |
|   [Utils/Objects](./Utils/Objects/README.md) | Chart objects: creation wrappers, scheduled deletion, Fibonacci helper. |
|   [Utils/LogFile](./Utils/LogFile/README.md) | File logging system (work in progress). |
Nique_372
2026-09-06 11:15:27 -05:00
| **[IndicatorsCts](./IndicatorsCts/README.md)** | Generic wrapper for consuming technical indicators with a reusable instance pool. |
Nique_372
2026-10-29 22:37:49 -05:00
| **[Ob](./Ob/README.md)** | Order Blocks indicator + example EAs that consume it (published articles); `Ob/Indicator/EaCommon.mqh` holds the pieces shared by those EAs (indicator resource, inputs, helper functions). |
Nique_372
2026-09-06 11:35:17 -05:00
| **[Examples](./Examples)** | Working EAs/scripts that put the libraries above into practice (breakeven panel, risk management panel, lot size / SL test scripts). |
| **[MqlCompilerBugs](./MqlCompilerBugs)** | Minimal reproductions of MQL5 compiler bugs found while building this ecosystem, each with its own README. |
Nique_372
2026-11-01 15:01:44 -05:00
| **[Sets](./Sets)** | `.set` preset files used by published articles (currently the partial-close article, #19682).
Nique_372
2026-09-06 11:15:27 -05:00
> Code snippets for each module (with real usage examples) now live in that folder's own README — this root README is the ecosystem map, not the class catalog.
Niquel Mendoza
2026-05-28 17:41:01 +00:00
Niquel Mendoza
2025-12-21 17:55:44 +00:00
---
Niquel Mendoza
2025-10-08 13:00:59 +00:00
Niquel Mendoza
2026-02-27 12:46:16 +00:00
## Examples
Nique_372
2026-10-29 22:37:49 -05:00
- Examples\\GUI\\BE\\BreakevenPanel_EA.mq5
Niquel Mendoza
2026-02-27 12:46:16 +00:00
![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)
---
Niquel Mendoza
2026-05-28 17:41:01 +00:00
Niquel Mendoza
2025-10-17 22:03:34 +00:00
## Implemented Article Series
Niquel Mendoza
2025-09-22 14:56:48 +00:00
Niquel Mendoza
2025-10-17 22:03:34 +00:00
### Risk Management
Niquel Mendoza
2025-09-22 14:56:48 +00:00
Niquel Mendoza
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) |
Nique_372
2026-11-01 14:31:44 -05:00
| **Part 2** | Lot size calculation | [[EN]](https://www.mql5.com/en/articles/16985) |
| **Part 3** | Base class construction | [[EN]](https://www.mql5.com/en/articles/17249) |
| **Part 4** | Completing key functions of the CRiskManagement class | [[EN]](https://www.mql5.com/en/articles/17508) |
| **Part 5** | Integrating risk management into an EA (Order Block) | [[EN]](https://www.mql5.com/en/articles/17640) |
Niquel Mendoza
2025-09-22 14:56:48 +00:00
Niquel Mendoza
2025-10-17 22:03:34 +00:00
### Position Management - Breakeven
Niquel Mendoza
2025-09-22 17:09:08 +00:00
Niquel Mendoza
2025-10-17 22:03:34 +00:00
| Part | Focus | Article Link |
Niquel Mendoza
2025-09-22 17:09:08 +00:00
|-------|---------|-------------------|
Nique_372
2026-11-01 14:31:44 -05:00
| **Part 1** | Base class and breakeven by fixed points | [[EN]](https://www.mql5.com/en/articles/17957) |
| **Part 2** | Breakeven by ATR and RRR | [[EN]](https://www.mql5.com/en/articles/18111) |
Niquel Mendoza
2025-09-22 17:09:08 +00:00
Niquel Mendoza
2025-10-17 22:03:34 +00:00
### Position Management - Partial Closes
| Focus | Article Link |
|-------|--------------------|
Nique_372
2026-11-01 14:31:44 -05:00
| Implementation of partial closes in MQL5 | [[EN]](https://www.mql5.com/en/articles/19682) |
Niquel Mendoza
2025-09-22 14:56:48 +00:00
Niquel Mendoza
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) |
Niquel Mendoza
2025-10-17 22:03:34 +00:00
### Order Block Indicator
Niquel Mendoza
2025-09-22 14:56:48 +00:00
Niquel Mendoza
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) |
Niquel Mendoza
2025-09-22 14:50:12 +00:00
Nique_372
2026-11-01 14:31:44 -05:00
> **Warning:** The articles are outdated with respect to the current state of the libraries (some libraries have been significantly updated, while others have had their architecture completely changed or have been rebuilt).
Niquel Mendoza
2026-05-28 17:41:01 +00:00
---
## License
**[Read Full License](./LICENSE)**
By downloading or using this repository, you accept the license terms.
---
## Requirements
See the [dependencies.json](./dependencies.json) file.
---
## Installation of repo code
```bash
cd "C:\Users\YOUR USER\AppData\Roaming\MetaQuotes\Terminal\YOUR ID\MQL5\Shared Projects"
tsndep install "https://forge.mql5.io/nique_372/MQLArticles.git"
```
Nique_372
2026-09-06 11:15:27 -05:00
- Using the `tsndep` command requires the `tsndep` package (available on [PyPI](https://pypi.org/project/tsndep)). This command automatically downloads all dependencies and installs every requirement from the repositories.
- If any part of the system is private, the install will fail. Contact me so I can grant you access (if it's a product, you can purchase it; if you have any questions, don't hesitate to reach out). Check the dependencies.json file for more info.
Niquel Mendoza
2026-05-28 17:41:01 +00:00
---
## Contact
- **Platform:** [MQL5 Community](https://www.mql5.com/es/users/nique_372)
- **Profile:** https://www.mql5.com/es/users/nique_372
- **My Articles** https://www.mql5.com/es/users/nique_372/publications