Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.04.18 07:34

Exp_Color3rdGenXMA - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 22

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

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.

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

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

Testing results for 2011 at USDCHF H4:

Fig. 2. Chart of testing results

Fig. 2. Chart of testing results

Translated from Russian by MetaQuotes Software Corp.
Original code:

CandleSize CandleSize

The indicator of ranges of the last three candlesticks of timeframe selected by the trader

Exp_QQECloud Exp_QQECloud

Trading system using the Exp_QQECloud trend indicator.

ColorRSI ColorRSI

RSI with the colored signal levels

NavelEMA NavelEMA

The classic EMA with the linear combination of price timeseries.