Niquel Mendoza / Publications
Codes
Risk management and bot ict daily bias for MetaTrader 5
The RiskManagement library in MQL5 provides efficient and dynamic risk management, optimised to minimise resources. It allows setting maximum profit and loss limits with customisable modifiers. It includes OCO order control and tools for candlestick management and price conversions
Articles
Risk Management (Part 5): Integrating the Risk Management System into an Expert Advisor for MetaTrader 5
In this article, we will implement the risk management system developed in previous publications and add the Order Blocks indicator described in other articles. In addition, we will run a backtest so we can compare results with the risk management system enabled and evaluate the impact of dynamic
Risk Management (Part 4): Completing the Key Class Methods for MetaTrader 5
This is Part 4 of our series on risk management in MQL5, where we continue exploring advanced methods for protecting and optimizing trading strategies. Having laid important foundations in earlier articles, we will now focus on completing all remaining methods postponed in Part 3, including
Risk Management (Part 3): Building the Main Class for Risk Management for MetaTrader 5
In this article, we will begin creating a core risk management class that will be key to controlling risks in the system. We will focus on building the foundations, defining the basic structures, variables and functions. In addition, we will implement the necessary methods for setting maximum profit
Risk Management (Part 2): Implementing Lot Calculation in a Graphical Interface for MetaTrader 5
In this article, we will look at how to improve and more effectively apply the concepts presented in the previous article using the powerful MQL5 graphical control libraries. We'll go step by step through the process of creating a fully functional GUI. I'll be explaining the ideas behind it, as well
Risk Management (Part 1): Fundamentals for Building a Risk Management Class for MetaTrader 5
In this article, we'll cover the basics of risk management in trading and learn how to create your first functions for calculating the appropriate lot size for a trade, as well as a stop-loss. Additionally, we will go into detail about how these features work, explaining each step. Our goal is to
Developing Advanced ICT Trading Systems: Implementing Signals in the Order Blocks Indicator for MetaTrader 5
In this article, you will learn how to develop an Order Blocks indicator based on order book volume (market depth) and optimize it using buffers to improve accuracy. This concludes the current stage of the project and prepares for the next phase, which will include the implementation of a risk
Developing Advanced ICT Trading Systems: Implementing Order Blocks in an Indicator for MetaTrader 5
In this article, we will learn how to create an indicator that detects, draws, and alerts on the mitigation of order blocks. We will also take a detailed look at how to identify these blocks on the chart, set accurate alerts, and visualize their position using rectangles to better understand the
Cierres parciales condicionales (Parte 1): Creación de la clase base for MetaTrader 5
En este artículo implementaremos un nuevo método para la gestión de posiciones, parecido a los cierres parciales "simples" que implementamos anteriormente, pero con una diferencia importante. En lugar de basarse en niveles de takeprofit fijos, este enfoque aplica los cierres parciales al momento de
Implementación de los cierres parciales en MQL5 for MetaTrader 5
En este artículo se desarrolla una clase para gestionar cierres parciales en MQL5 y se integra dentro de un EA de order blocks. Además, se presentan pruebas de backtest comparando la estrategia con y sin parciales, analizando en qué condiciones su uso puede maximizar y asegurar beneficios
Реализация механизма безубыточности в MQL5 (Часть 2): Безубыток на основе ATR и RRR for MetaTrader 5
В данной статье завершается реализация механизмов безубыточности на основе ATR и RRR в MQL5, а также с нуля разрабатывается класс, позволяющий легко изменять режим безубытка без необходимости повторного ввода параметров. Для оценки эффективности каждого типа безубытка выполняется несколько







