Are you ready to take your trading to the next level? Meet the Exp_Slow-Stoch_Duplex, a powerful system designed for MetaTrader 5. This Expert Advisor (EA) operates two identical trading systems tailored for both long and short positions, driven by the signals from the Slow-Stoch indicator. The beauty of this EA lies in its configurability, allowing you to customize it according to your trading style.
Understanding the Input Parameters
The input parameters are grouped into two distinct categories:
- L - Parameters for managing long positions.
- S - Parameters for managing short positions.
//+----------------------------------------------+ //| Input parameters of the EA for long trades | //+----------------------------------------------+ input uint L_Magic=777; // L magic number input double L_MM=0.1; // L share of a deposit per trade input MarginMode L_MMMode=LOT; // L lot setting mode //+----------------------------------------------+ //| Input parameters of the EA for short trades | //+----------------------------------------------+ input uint S_Magic=555; // S magic number input double S_MM=0.1; // S share of a deposit per trade input MarginMode S_MMMode=LOT; // S lot setting mode
Trade Independently
Each trading system operates independently with its own magic number. This is crucial because real financial markets aren't symmetric; they often require distinct parameters for trading in bullish versus bearish conditions. To ensure optimal performance, it’s advisable to test one system at a time. You can easily disable the second system using the relevant switches.
input bool L_PosOpen=true // L permission to enter long positions input bool L_PosClose=true // L permission to exit long positions
Getting Started
For the EA to function correctly, you need to place the compiled indicator file Slow-Stoch.ex5 into your terminal's terminal_data_older\MQL5\Indicators folder.
The tests below utilized default input parameters. Note that Stop Loss and Take Profit settings were not included in these tests.
Testing Results

Fig.1. Examples of deals on the chart with symmetrical settings.
Here are the testing results for 2017 on the EURAUD H8:

Fig.2. Testing results chart.

Fig.3. Examples of deals on the chart with non-symmetrical settings.
Comments 0