Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Exp_BrainTrend2_AbsolutelyNoLagLwma_X2MACandle_MMRec

Three independent trading systems using BrainTrend_V2, AbsolutelyNoLagLWMA and X2MACandle indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system. Trading signals are formed when a bar closes if a trend has changed (which is displayed by any of the three indicators changing its color). The EA is a further complication of the Exp_BrainTrend2_AbsolutelyNoLagLwma and Exp_BrainTrend2_AbsolutelyNoLagLwma_MMRec code by adding another trading system using the X2MACandle indicator.

The EA inputs are divided into three groups A, B and C according to indicators applied in trading systems:

  • A - BrainTrend2_V2;
  • B - AbsolutelyNoLagLwma;
  • C - X2MACandle.

Each trading system should be configured separately by disabling the remaining trading systems with the corresponding EA inputs:

input bool    A_BuyPosOpen=true;    //A Permission to enter long positions input bool    A_SellPosOpen=true;   //A Permission to enter short positions 

For the generated EA to operate correctly, the compiled files of indicators BrainTrend2_V2.ex5, AbsolutelyNoLagLwma.ex5 and X2MACandle.ex5 should be present in the <terminal_data_directory>\MQL5\Indicators.

Default Expert Advisor's input parameters have been used during tests shown below. Stop Loss and Take Profit have not been used during the tests.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Examples of trades on the chart

Testing results for 2017 on EURJPY H6:

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Test results chart

22392