Discussing the article: "Implementing of a Breakeven Mechanism in MQL5 (Part 2): ATR- and RRR-Based Breakeven"

 

Check out the new article: Implementing of a Breakeven Mechanism in MQL5 (Part 2): ATR- and RRR-Based Breakeven.

This article completes the implementation of ATR- and RRR-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.

Welcome everyone to the second part of the article on the breakeven mechanism. Here we will continue programming the different breakeven modes whose implementation remained unfinished in the first part. In addition, we will create an auxiliary class that simplifies the user's choice of breakeven mode. First, we will consider the ATR-based breakeven type, then the one related to RRR, and finally the class for managing the breakeven mechanism. At the end, we will perform a comparative analysis to determine which breakeven type is the most suitable for the Order Blocks Expert Advisor originally developed in the last article of the risk-management series.


Author: Niquel Mendoza