Mastering the Exp_XROC2_VG Expert Advisor for MetaTrader 5

Mike 2017.08.10 21:40 43 0 0
Attachments

If you're looking to enhance your trading game, the Exp_XROC2_VG_Digit_Tm Expert Advisor is definitely worth considering. This EA operates based on signals produced by the XROC2_VG oscillator, allowing you to fine-tune your trading strategies with a strict time interval.

Here’s how it works: a trade signal pops up when a bar closes, provided there’s a color change in the indicator (specifically, when the main indicator line crosses the signal line).

You can customize your trading sessions by setting specific trading hours in the input parameters:

inputbool   TimeTrade=true;      //Enable trading within the specified intervalinput HOURS  StartH=ENUM_HOUR_0;  //Set trading start hourinput MINUTS StartM=ENUM_MINUT_0; //Set trading start minuteinput HOURS  EndH=ENUM_HOUR_23;   //Set trading end hourinput MINUTS EndM=ENUM_MINUT_59;  //Set trading end minute

These parameters allow you to specify both the start and end times of your trading sessions. By default, the EA is set to trade the entire session from 00:00 to 23:59.

If you set a start time that’s later than the end time, don’t worry! The Expert Advisor will simply close any open positions the next day at the designated time.

To ensure the Exp_XROC2_VG works like a charm, make sure to save the XROC2_VG.ex5 compiled indicator file to your <terminal_data_folder>\\MQL5\Indicators.

Also, keep in mind that the TradeAlgorithms.mqh library file is essential for using Expert Advisors with brokers offering a nonzero spread and the option to set Stop Loss and Take Profit during position openings. You can find more variations of this library at this link: Trade Algorithms.

In the testing results below, we used the default input parameters for the Expert Advisor. Notably, no Stop Loss or Take Profit settings were applied during the tests.

Fig. 1. Examples of deals on the chart

Fig. 1. Examples of deals on the chart

Here are the testing results for 2015, focusing on the XAUUSD on the H4 timeframe:

Fig. 2. Testing results chart

Fig. 2. Testing results chart

List
Comments 0