Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Exp_AdaptiveRenko_Duplex - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Exp_AdaptiveRenko_Duplex - expert for MetaTrader 5

Exp_AdaptiveRenko_Duplex - expert for MetaTrader 5

Exp_AdaptiveRenko_Duplex - expert for MetaTrader 5

Adaptive Renko indicator for two identical trading systems (long and short positions) based on signals, which can be configured in different ways in one Expert Advisor. For this purpose, all input parameters can be divided into two main groups:

 //+------------------------------------------------------------------------+
//|EA input for long-term operation |
//+------------------------------------------------------------------------+
Input unit L_magic= Chapter 777 ; //L magic number
Enter double L_MM= 0.1 ; //L share of deposit in a transaction
Enter the margin mode L_MMMode=LOT; //L lot calculation method
 //+------------------------------------------------------------------------+
//|EA input for short operations |
//+------------------------------------------------------------------------+
Input unit S_magic= Chapter 555 ; //S magic number
Enter double S_MM= 0.1 ; //S share of deposit in a transaction
Enter the margin mode S_MMMode=LOT; //S lot calculation method

These two trading systems use different magic numbers and are absolutely independent of each other. Real financial markets are rarely symmetrical. Trading in rising and falling markets often requires absolutely different parameters of the same trading system. To configure the EA correctly, you should first test only one trading system and disable the second trading system using the relevant switches.

 Enter boolean L_PosOpen= true ; //L allows entry into long positions
Enter Boolean value L_PosClose= true ; //L allows long positions to be closed

After that, do the same with the second system.

In order for the EA to run, the compiled Adaptive Renko.ex5 indicator file should be located in in \MQL5\Indicators.

The input parameters of the default Expert Advisor have been used during testing, as shown below. Stop Loss and Take Profit were not used during testing.


Exp_AdaptiveRenko_Duplex - expert for MetaTrader 5

Figure 1. Example of a trade with symmetrical setup on the chart

2017 USDJPY H4 test results:

Exp_AdaptiveRenko_Duplex - expert for MetaTrader 5

Figure 2. Test result graph

Exp_AdaptiveRenko_Duplex - expert for MetaTrader 5

Figure 3. Example of a trade with an asymmetric setup on the chart


Attachment download

📎 tradealgorithms.mqh (237.01 KB)

📎 adaptiverenko.mq5 (20.24 KB)

📎 exp_adaptiverenko_duplex.mq5 (20.84 KB)

Source: MQL5 #22499

Verification code Refresh