MQL Articles 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).
  • MQL5 97.8%
  • Python 2.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nique_372 Nique_372 87640cc853
2026-11-07 21:17:58 -05:00
Account 2026-11-07 21:17:58 -05:00
Examples 2026-11-06 10:41:14 -05:00
Images new files added 2026-02-26 22:09:18 -05:00
IndicatorsCts 2026-11-06 11:02:19 -05:00
Logos new files added 2026-09-03 15:27:17 -05:00
MqlCompilerBugs new files added 2026-09-02 10:54:12 -05:00
Ob 2026-11-06 10:40:44 -05:00
PosMgmt 2026-11-07 09:34:18 -05:00
Sets/Article_19682 2026-11-01 14:31:44 -05:00
Strategy 2026-11-03 11:45:09 -05:00
Utils 2026-11-07 21:17:58 -05:00
.gitattributes cambios 2026-09-17 20:16:10 -05:00
.gitignore 2026-11-01 10:14:25 -05:00
CHANGELOG.md 2026-11-06 13:11:19 -05:00
dependencies.json 2026-09-04 11:33:46 -05:00
LICENSE new files added 2026-05-28 12:34:18 -05:00
MQLArticles.mqproj 2026-08-06 11:51:10 -05:00
README.md 2026-11-01 15:01:44 -05:00

MQLArticles Logo

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).


Main features

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
Account Everything about the trading account: risk management, live account status and money history — see submodules below.
  Account/RM Risk management: lot size calculation, dynamic SL/TP, max loss/profit limits with automatic position closing.
  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 Money-history helpers: position commission, profit of a position, net profit since a date (by magic number).
  Account/OrderUtils OCO (one-cancels-other) orders and an orders gestor.
PosMgmt 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..).
Strategy 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 Core of cross-cutting utilities used by the rest of the ecosystem — see submodules below.
  Utils/FA Shared building blocks: ATR, new-bar detection, ATR/points diffs, day/week/month events.
  Utils/SetFiles Programmatic generation, loading and editing of .set files (EA parameters).
  Utils/File Folder operations: clean and encrypt/decrypt whole folders.
  Utils/Objects Chart objects: creation wrappers, scheduled deletion, Fibonacci helper.
  Utils/LogFile File logging system (work in progress).
IndicatorsCts Generic wrapper for consuming technical indicators with a reusable instance pool.
Ob 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).
Examples Working EAs/scripts that put the libraries above into practice (breakeven panel, risk management panel, lot size / SL test scripts).
MqlCompilerBugs Minimal reproductions of MQL5 compiler bugs found while building this ecosystem, each with its own README.
Sets .set preset files used by published articles (currently the partial-close article, #19682).

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.


Examples

  • Examples\GUI\BE\BreakevenPanel_EA.mq5

Imagen

  • Examples\GUI\Risk_Management_Panel.mq5

Imagen

  • Ob\Indicator\OrderBlockIndPart2.mq5

Imagen


Implemented Article Series

Risk Management

Part Main Topic Article Link
Part 1 Risk management fundamentals [EN]
Part 2 Lot size calculation [EN]
Part 3 Base class construction [EN]
Part 4 Completing key functions of the CRiskManagement class [EN]
Part 5 Integrating risk management into an EA (Order Block) [EN]

Position Management - Breakeven

Part Focus Article Link
Part 1 Base class and breakeven by fixed points [EN]
Part 2 Breakeven by ATR and RRR [EN]

Position Management - Partial Closes

Focus Article Link
Implementation of partial closes in MQL5 [EN]

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]

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).


License

Read Full License

By downloading or using this repository, you accept the license terms.


Requirements

See the dependencies.json file.


Installation of repo code

cd "C:\Users\YOUR USER\AppData\Roaming\MetaQuotes\Terminal\YOUR ID\MQL5\Shared Projects"
tsndep install "https://forge.mql5.io/nique_372/MQLArticles.git"
  • Using the tsndep command requires the tsndep package (available on PyPI). 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.

Contact