Exp_CMO_Duplex - MetaTrader 5 Expert | Forex Indicators Download - MT4/MT5 Resources



Two identical trading systems based on the cross of the Chimei-O indicator and the zero line, for long and short trading, 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 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 then disable the second trading system using a special switcher.
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 CMO.ex5 indicator file 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
2016 USDJPY H4 test results:

Figure 2. Test result graph

Figure 2. Example of a trade with asymmetric setup on the chart
Attachment download
📎 tradealgorithms.mqh (223.38 KB)
📎 cmo.mq5 (16.56 KB)
📎 exp_cmo_duplex.mq5 (18.15 KB)
Source: MQL5 #19502
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •