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.16 06:51
Experts

Exp_CandleTrend - expert for MetaTrader 5

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

Views:
3909
Rating:
votes: 25
\MQL5\Include\

The simplest non-indicator based trading system that defines the moments of entry by presence of single directed candlesticks. Signals to open positions occur when there is a sequence of simultaneously growing or falling candlesticks. The number of these candlesticks is defined by the Expert Advisor input parameter.

input uint CandleTrendTotal=3; //number of candlesticks in one direction

It should be considered that 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.

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 XAUUSD H4: 

Fig. 2. Chart of testing results

Fig. 2. Chart of testing results 

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1640

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Holt's double exponential smoothing trend Holt's double exponential smoothing trend

Holt's double exponential smoothing - the trend component (mt4 version).

Holt's double exponential smoothing (mt4 version) Holt's double exponential smoothing (mt4 version)

Holt's double exponential smoothing with linear forecasting.