Exp_RJTX_Matches_Smoothed_Duplex - MetaTrader 5 Expert



Two identical trading systems (long and short positions) based on the indicator signal RJTX_Matches_Smoothed , can be configured in different ways in one Expert Advisor. For this purpose, all input parameters can be divided into two main groups:
//+------------------------------------------------------------------------+ //| Input parameters of EA long position | //+------------------------------------------------------------------------+ Input unit L_magic= Chapter 777 ; //L magic number Enter double L_MM= 0.1 ; // L share of deposit for each transaction Enter the margin mode L_MMMode=LOT; //L hand setting mode //+------------------------------------------------------------------------+ //| EA input parameters for short positions | //+------------------------------------------------------------------------+ Input unit S_magic= Chapter 555 ; //S magic number Enter double S_MM= 0.1 ; //S share of deposit for each transaction Enter margin mode S_MMMode=LOT; //S batch setting mode
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 one.
Enter Boolean L_PosOpen= true ; //L allows entry into long positions Enter Boolean value L_PosClose= true ; //L allows long positions to be closed
Then do the same for the second system.
In order for the EA to run, the compiled RJTX_Matches_Smoothed.ex5 indicator file should be located in
The input parameters of the default Expert Advisor were used in the test shown below. Stop Loss and Take Profit were not used during testing.

Figure 1. Example trade with symmetrical setup on the chart.
2017 GBPJPY H4 test results:

Figure 2. Test results chart.

Figure 2. Example of a trade with asymmetric setup on the chart.
Attachment download
📎 Exp_RJTX_Matches_Smoothed_Duplex.mq5 (21.31 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 TradeAlgorithms.mqh (237.01 KB)
📎 RJTX_Matches_Smoothed.mq5 (22.22 KB)
Source: MQL5 #22882
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •