No description
Find a file
2025-12-05 21:57:34 +00:00
Defines new files added 2025-11-28 20:22:21 -05:00
Examples new files added 2025-11-28 20:22:05 -05:00
Images new files added 2025-11-28 20:51:11 -05:00
IndicatorsCts Add 2025-11-22 08:27:51 -05:00
Ob 2025-11-26 07:04:08 -05:00
PosMgmt 2025-11-28 20:21:30 -05:00
RM 2025-11-28 20:21:30 -05:00
Sets/Article_19682 new files added 2025-10-26 16:42:49 -05:00
Strategy new files added 2025-12-05 16:33:47 -05:00
Utils Modified - Fixed 2025-12-01 11:07:11 -05:00
MQLArticles.mqproj Generated by MQL5 Wizard 2025-09-22 08:42:35 -05:00
README.md Actualizar README.md 2025-12-05 21:57:34 +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
Defines - MoreInfo.md
- MoreStrict.md
Md files, which contain defines that can be defined, their definition implies "activating" or increasing the prints that certain classes that make up the repository do.
Examples -GUI/
     -Risk_Management_Panel.mq5
     -BE/
         - Ea.mq5
         - Main.mqh
-Test/
      - Get_Lot_By_Risk_Per_Trade_and_SL.mq5
      - Get_Sl_by_risk_per_operation_and_lot.mq5
Practical examples of using the Risk Management (RM) library.
Images - breakeven_manager.png
- lot_size_calculator.png
- ob_ind.png
Screenshots of the repository examples.
IndicatorsCts - IndicatorsBases.mqh Wrapper library for implementing simple indicators using classes.
Ob - Bots/
      Art19682/
      - Ea.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).
PosMgmt - ConditionalPartial/
      Base/
       - 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).
Strategy - Core/
      - Base.mqh
      - Defines.mqh
- Drv/
        - Ao/
            - Main.mqh
        - SimpleFilter/
            - Filter.mqh
            - Main.mqh
- Utils/
      - DailyFilter.mqh
      - YearFilter.mqh
- Main.mqh
Library that facilitates the implementation of trading strategies in 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]

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

Imagen

  • Examples\GUI\Risk_Management_Panel.mq5

Imagen

  • Ob\Indicator\OrderBlockIndPart2.mq5

Imagen

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.