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

Exp_XDidi_Index_Cloud_Duplex - MetaTrader 5 Expert

author EAcpu | 4 reads | 0 comments |

Exp_XDidi_Index_Cloud_Duplex - expert for MetaTrader 5

Exp_XDidi_Index_Cloud_Duplex - expert for MetaTrader 5

Exp_XDidi_Index_Cloud_Duplex - expert for MetaTrader 5

Two identical trading systems based on color changes XDidi_Index_Cloud indicator cloud 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.

In order to operate the Expert Advisor correctly, you should save the compiled indicator file XDidi_Index_Cloud.ex5 to \MQL5\Indicators.

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.

Exp_XDidi_Index_Cloud_Duplex - expert for MetaTrader 5

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

2016 USDJPY H6 test results:

Exp_XDidi_Index_Cloud_Duplex - expert for MetaTrader 5

Figure 2. Test results chart.

Exp_XDidi_Index_Cloud_Duplex - expert for MetaTrader 5

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


Attachment download

📎 Exp_XDidi_Index_Cloud_Duplex.mq5 (26.95 KB)

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 TradeAlgorithms.mqh (223.38 KB)

📎 XDidi_Index_Cloud.mq5 (16.22 KB)

Source: MQL5 #19647

Verification code Refresh