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

Exp_Skyscraper_Fix_Duplex - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Exp_Skyscraper_Fix_Duplex - expert for MetaTrader 5

Exp_Skyscraper_Fix_Duplex - expert for MetaTrader 5

Exp_Skyscraper_Fix_Duplex - expert for MetaTrader 5

Two identical trading systems (long and short positions) based on the signal Skyscraper_Fix indicator 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 long trading EA |
//+--------------------------------------------------------+ Magic Number 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
//+------------------------------------------------------------------------+
//|Input parameters of short trading EA|
//+------------------------------------------------------------------------+
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 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 Skyscraper_Fix.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_Skyscraper_Fix_Duplex - expert for MetaTrader 5

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

2017 USDJPY H4 test results:

Exp_Skyscraper_Fix_Duplex - expert for MetaTrader 5

Figure 2. Test result graph

Exp_Skyscraper_Fix_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)

📎 skyscraper_fix.mq5 (23.77 KB)

📎 exp_skyscraper_fix_duplex.mq5 (19.39 KB)

Source: MQL5 #22298

Verification code Refresh