Unlocking the Power of the ColorX2MA_Digit EA
If you're looking to elevate your trading game, the ColorX2MA_Digit Expert Advisor is a fantastic tool that integrates three independent trading systems into one seamless EA. This setup allows you to adjust the trade volume based on the outcomes of your previous trades, making it a smart choice for any trader aiming to optimize their strategy.
How It Works
Trading signals are generated when a bar closes, especially if a trend has shifted, which is indicated by a color change in any of the three indicators. This feature helps you stay on top of market movements without missing a beat.
Volume Management
The EA is equipped with customizable input variables that let you manage the volume of your open positions. Here’s a quick look at the settings for the first trading system:
input uint A_BuyLossMMTriger=2; // Number of losing Buy trades to decrease volume input uint A_SellLossMMTriger=2;// Number of losing Sell trades to decrease volume input double A_SmallMM=0.01 // Percentage of account balance used in losing trades input double A_MM=0.1 // Percentage of account balance used in normal trades
With these settings, if the last two trades in one direction were losers, the EA will open the next trade in that direction at 0.01 lots. If at least one of the last two trades was profitable, the position size jumps to 0.1 lots.
Customizing for Each System
The second trading system has similar input parameters:
input uint B_BuyLossMMTriger=2 // Number of losing Buy trades to decrease volume input uint B_SellLossMMTriger=2;// Number of losing Sell trades to decrease volume input double B_SmallMM=0.01 // Percentage of account balance used in losing trades input double B_MM=0.1 // Percentage of account balance used in normal trades
For the third system, you'll notice the C_ prefix for its inputs.
Setting Up Your EA
To achieve the best results, it's recommended to configure each EA for the respective trading system while disabling the others. You can do this using the following parameters:
input bool B_BuyPosOpen=true // Allow long positions input bool B_SellPosOpen=true // Allow short positions
Setting these to false will disable the respective positions.
Final Touches
For the EA to run smoothly, make sure that the compiled ColorX2MA_Digit.ex5 indicator file is placed in the <terminal_data_directory>\MQL5\Indicators folder.
Test Results
We conducted tests using the default input parameters with stops, and the results are promising. Check out the trade examples in the chart below:

Fig. 1. Examples of trades on the chart
The tests were conducted on GBPJPY using H3, H6, and H12 timeframes over the year 2016.

Fig. 2. Test results chart
Comments 0