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 Color3rdGenXMA

Trading system to trade on the trend market using the Color3rdGenXMA Moving Average.

The decision of the deal is taken strictly in a fixed moment of time.

These moments are defined by two input parameters of the Expert Advisor:

input Hour       StartHour=H08;      // Hour of position opening
input Min        StartMinute=M00;    // Minute of position opening

No matter of trading results after a certain number of minutes defined by the TimeMin Expert Advisor input parameter value (time of position holding in minutes) open position closes. To the moment of position opening the direction for the deal is defined by the color of the Color3rdGenXMA indicator. If the color is red, short will be opened, if blue, long will be opened.

Place Color3rdGenXMA.ex5 compiled file to the terminal_data_folder\MQL5\Indicators.

It should be considered that the TradeAlgorithms.mqh library file is designed to use Expert Advisors by brokers who offer nonzero spread and ability to set Stop Loss and Take Profit simultaneously opening a position. Other variants of this library can be downloaded from https://www.mql5.com/en/code/1578.

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

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. The instances of history of deals in the chart

Testing results for 2011 at USDCHF H4:

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Chart of testing results

1648

Best MetaTrader Indicators + Profitable Expert Advisors