Exp_ColorJFatl_Digit_Duplex - MetaTrader 5 Expert



The direction of movement of two identical trading systems ColorJFatl_Digit long and short trades based on changes can be configured in different ways in an 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 trading systems use different magic numbers, so they are two independent systems. Real financial markets are rarely symmetrical. Trading in rising and falling markets often requires 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.
For correct operation of the Expert Advisor, you should add the compiled indicator file ColorJFatl_Digit.ex5 to
The default input parameters of the Expert Advisor were used during the tests shown below. Stop Loss and Take Profit were not used during testing.

Figure 1. Example of a trade with symmetrical setup on the chart.
EURAUD H4 test results 2015:

Figure 2. Test results chart.

Figure 2. Example of a trade with an asymmetric setup on the chart.
Attachment download
📎 Exp_ColorJFatl_Digit_Duplex.mq5 (20.88 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 TradeAlgorithms.mqh (223.38 KB)
📎 ColorJFatl_Digit.mq5 (8.82 KB)
Source: MQL5 #19344
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •