No description
Find a file
2025-10-31 11:49:06 -05:00
Examples - Fixed: se aumento la altura del panel para ver el resultado del sl 2025-09-22 19:17:26 -05:00
IndicatorsCts new files added 2025-10-22 18:56:56 -05:00
Ob new files added 2025-10-22 18:53:03 -05:00
PosManagement Add: When adding positions automatically (Opening) the symbol is now checked 2025-10-26 20:55:05 -05:00
RM Translation: The comments in the structures section have been translated. 2025-10-26 20:52:13 -05:00
Sets/Article_19682 new files added 2025-10-26 16:42:49 -05:00
Utils Fixed: Correct path for the inclusion of graphic objects in Fibonacci 2025-10-31 11:49:06 -05:00
MQLArticles.mqproj Generated by MQL5 Wizard 2025-09-22 08:42:35 -05:00
README.md Actualizar README.md 2025-10-27 17:09:52 +00:00

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

Folder Files Description
Examples - Get_Lot_By_Risk_Per_Trade_and_SL.mq5
- Get_Sl_by_risk_per_operation_and_lot.mq5
- Risk_Management_Panel.mq5
Practical examples of using the Risk Management (RM) library.
IndicatorsCts - IndicatorsBases.mqh Wrapper library for implementing simple indicators using classes.
Ob - Ea/
    - Ob_artc_19682.mq5

- Indicator/
    - Main.mqh
    - OrderBlockIndPart2.mq5
Includes the Order Blocks indicator, as well as the Expert Advisors used as examples in other articles published by the author (nique_372).
PosManagement - ConditionalPartial/
    - Base.mqh
    - Defines.mqh
- Breakeven.mqh
- Partials.mqh
Contains libraries for position management:
- Breakeven
- Partial closure
- Conditional partial closure.
RM - AccountStatus.mqh
- LossProfit.mqh
- LoteSizeCalc.mqh
- Modificators.mqh
- OcoOrder.mqh
- OrdersGestor.mqh
- RiskManagement.mqh
- RiskManagementBases.mqh
- RM_Defines.mqh
- RM_Functions.mqh
All modules that make up the RM risk management library.
Utils - FA/
    - Atr.mqh
    - AtrCts.ex5
    - BarControler.mqh
    - ClasesBases.mqh
    - Events.mqh
    - FuncionesBases.mqh
    - Managers.mqh
    - SimpleLogger.mqh
    - Sort.mqh
    - StringToArray.mqh

- CustomOptimization.mqh
- Fibonacci.mqh
- File.mqh
- Funciones Array.mqh
- GraphicObjects.mqh
- RandomSimple.mqh
Utility library for creating libraries, EAs, and indicators. Includes functions for working with arrays, time, conversions, strings, simple mathematics, and classes for candlestick pattern handling, optimized ATR, PC suspension validation, among others.
Sets - Article_19682/
   ARTICLE_PARTIAL_SET_TEST_2_OB_WITHOUT_PARTIALS.set
    - ARTICLE_PARTIAL_SET_OB_TEST_2_WITH_PARTIALS.set
    - ARTICLE_PARTIAL_SET_TEST_1_WITH_PARTIALS.set
    - ARTICLE_PARTIAL_SET_TEST_1_WITHOUT_PARTIALS.set
Sets used in other articles published by the author (nique_372).

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]

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]

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 sharedprojects folder.
  • Fork the repository.