Niquel Mendoza / 个人资料
- 信息
|
1 年
经验
|
7
产品
|
42
演示版
|
|
1
工作
|
0
信号
|
0
订阅者
|
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 cumplirse cierta condición específica. De ahí su nombre: "Cierres parciales condicionales". En esta primera parte de la implementación en MQL5 veremos cómo funciona esta técnica de gestión de posiciones.
This article develops a class for managing partial position closing in MQL5 and then integrates it into an Order Blocks Expert Advisor. It also presents test results comparing the strategy with and without partial position closing, and analyzes the conditions under which this approach can help provide and maximize profit. In conclusion, partial position closing can be highly beneficial in trading strategies, especially those focused on wider price movements.
This article completes the implementation of ATR- and RRRR-based breakeven mechanisms in MQL5 and develops, from scratch, a class that makes it easy to switch breakeven modes without having to enter the parameters again. To evaluate the effectiveness of each breakeven type, several backtests are run, analyzing their advantages and disadvantages in the context of algorithmic trading.
本文将探讨如何使用MQL5语言,在自动化交易策略中应用盈亏平衡机制。我们会先简要介绍什么是盈亏平衡模式、其实现方式以及可能存在的不同类型。随后,该功能将被集成到我们在上一篇关于风险管理的文章中所构建的Order Blocks智能交易系统(EA)中。为评估盈亏平衡机制的效果,我们会在特定条件下进行两组回测:一组启用盈亏平衡机制,另一组则不启用。
Order Block EA is an expert advisor designed to trade based on the concept of order blocks, applying principles from the ICT approach. The system identifies key market zones to generate structured buy or sell signals. To enhance signal quality, it uses an Exponential Moving Average (EMA) as a directional filter. Key Features: ✔ Configurable risk management: The system includes a complete risk control module that allows you to set: Daily loss limits Weekly loss limits Per-trade loss limits Total
