Exp_Slow-Stoch_Duplex - MetaTrader 5 Expert - MT4/MT5 Resources



Slow indicators for two identical trading systems (long and short positions) based on signals 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 | //+------------------------------------------------------------------------+ 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, you should place the compiled indicator file slowStoch.ex5 to terminal_data_older\MQL5\Indicators.
The EA default input parameters are used in the following tests. Stop Loss and Take Profit were not used in the test.

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

Figure 2. Test results chart.

Figure 3. Example of a trade with asymmetric setup on the chart.
Attachment download
📎 Exp_Slow-Stoch_Duplex.mq5 (22.59 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 TradeAlgorithms.mqh (237.01 KB)
📎 Slow-Stoch.mq5 (16.04 KB)
Source: MQL5 #23141
Exp_Slow-Stoch_Duplex - MetaTrader 5 Expert Pre-Using Tips
This page has been supplemented with structured instructions, focusing on the purpose of EA source code, MQL4/MQL5 platform compatibility, testing process and risk control. Before downloading or deploying, it is recommended to first determine whether it is consistent with your own variety, cycle and account environment.
Suitable for who to use
- Users who want to quickly screen EA source code and are willing to do simulation disk verification first.
- People who need to compare MT4/MT5 EAs, indicators, scripts or source code projects.
- Traders who wish to record backtests, parameters and risk boundaries before placing a trade.
Testing and risk control suggestions
- First verify the default parameters in the strategy tester or demo account, and then adjust the symbol, period, spread and trading period one by one.
- Scalping, grid, martin, and high-frequency strategies should focus on observing maximum drawdowns, consecutive losses, slippage, and trading frequency.
- It is not recommended to run any document directly on the real disk. At least observe the simulated disk performance for 2-4 weeks first.
FAQ
Can MT4 and MT5 be used interchangeably?
Usually cannot be used directly. EX4/MQ4 corresponds to MT4, EX5/MQ5 corresponds to MT5, and the source code needs to be compiled in the corresponding MetaEditor.
Is this resource guaranteed to be profitable?
cannot. EAs, indicators and scripts can only be used as trading tools, and the results depend on parameters, market environment, spreads, slippage and risk control.
What else can I continue to watch?
Forex EA download , foreign exchange indicator download , EA evaluation , MQL5 CodeBase .
English Search Notes
This page is also optimized for English search intent around Exp_Slow-Stoch_Duplex - MetaTrader 5 Expert . Related search terms include: MQL4 source code, MQL5 source code. Test any Forex EA, Expert Advisor, MT4/MT5 indicator, script or MQL source code with historical data and a demo account before live trading.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •