Master Your Trading with the Exp_ColorXMUV_Tm EA for MetaTrader 5

Mike 2017.08.10 19:31 20 0 0
Attachments

If you’re looking for an effective way to enhance your trading strategy, the Exp_ColorXMUV_Tm Expert Advisor (EA) is worth considering. This EA is built around the ColorXMUV moving average signals, allowing you to set a fixed trading time interval to optimize your trades.

Here’s how it works: a trading signal is generated when a bar closes, provided there’s a change in the indicator’s color. You can customize your trading hours right in the input parameters, enabling you to trade during your preferred time frame:

inputbool   TimeTrade=true;      //Enable trading in the specified intervalinput HOURS  StartH=ENUM_HOUR_0;  //Trading start (hours)input MINUTS StartM=ENUM_MINUT_0; //Trading start (minutes)input HOURS  EndH=ENUM_HOUR_23;   //Trading end (hours)input MINUTS EndM=ENUM_MINUT_59;  //Trading end (minutes)

With two variables for the start time (hours and minutes) and two for the end time, you have full control. The default settings let the EA trade throughout the entire session, from 00:00 to 23:59, automatically closing all positions at the end of the day.

Keep in mind: if you set the start time later than the end time, the EA will close your positions the following day at your specified time.

To ensure the Expert Advisor runs smoothly, make sure to save the ColorXMUV.ex5 compiled indicator file in your <terminal_data_folder>\MQL5\Indicators directory.

Also, don’t forget that the TradeAlgorithms.mqh library file allows you to use Expert Advisors with brokers that provide a nonzero spread, as well as the option to set Stop Loss and Take Profit during position openings. You can grab more versions of this library here.

The testing shown below used the default input settings for the Expert Advisor, without utilizing Stop Loss or Take Profit:

Fig. 1. Examples of deals on the chart

Fig. 1. Examples of deals on the chart

Here are the testing results for 2015 on the GBPUSD H2 pair:

Fig. 2. Testing results chart

Fig. 2. Testing results chart

List
Comments 0