If you're looking to ride the trends in trading, the Exp_X2MA_Digit_DM_361 is a game-changer for your MetaTrader 5 setup. This trend-following system leverages the strengths of the ColorX2MA_Digit and ColorDM_361 indicators. The ColorX2MA_Digit helps to identify the slow trend direction, while the ColorDM_361 pinpoints your entry point as the fast trend shifts.
How It Works
An entry signal is triggered at the close of a bar when two key conditions align:
- Fast and slow trend signals agree.
- The fast trend reverses direction.
Parameters You Should Know
Here’s a sneak peek at the EA's input parameters:
//| Input parameters of the EA indicator |
//+-------------------------------------------------+
input string Trade="Trade management";
input double MM=0.1;
// Share of deposit in a deal
input MarginMode MMMode=LOT;
// Lot value detection method
input uint StopLoss_=1000;
// Stop loss in points
input uint TakeProfit_=2000;
// Take profit in points
input string MustTrade="Trading permissions";
//+============== TRADING PERMISSIONS ==============+
input int Deviation_=10;
// Max price deviation in points
input bool BuyPosOpen=true;
// Permission to open long positions
input bool SellPosOpen=true;
// Permission to open short positions
//+-------------------------------------------------+
Setting Up Your EA
To ensure everything runs smoothly, make sure to place the compiled files for ColorX2MA_Digit, ColorX2MA_Digit_HTF, ColorDM_361, and ColorDM_361_HTF in your <terminal_data_folder>\MQL5\Indicators directory.
Also, keep in mind that the TradeAlgorithms.mqh library file is essential for using EAs with brokers that offer nonzero spreads and allow for setting Stop Loss and Take Profit during position opening. You can grab more versions of the library here.
Test Results
The default input parameters were utilized during testing, where Stop Loss and Take Profit were not included. Here’s a glimpse of the test results for 2015 on GBPUSD, using a slow trend on H4 and fast trend entries on M30:

Fig. 1. Examples of trades on the chart

Fig. 2. Testing results chart
Related Posts
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Mastering the Exp_ColorX2MA_X2 EA for MetaTrader 5: Your Ultimate Guide
- Unlock Your Trading Potential with the Fundamental Trader EA for MetaTrader 4
- Mastering Bullish and Bearish Harami Patterns with Stochastic in MT5