Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
4553
Rating:
(21)
Published:
2013.01.08 14:46
Updated:
2023.03.29 13:42
\MQL5\Include\ \MQL5\Indicators\
ef_distance.mq5 (9.64 KB) view
flat-trend.mq5 (9.22 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Exp_EF_distance trading system is based on changes of the trend direction displayed by the EF_distance indicator.

The signal is formed when a bar is closing depending on the change of the Moving Average direction displayed by the indicator.

To eliminate triggering of the Expert Advisor on the flat the Flat-Trend volatility indicator with three states which level determines whether there is enough trend force to open position. Deals filtering performs by the input parameter of the Expert Advisor

input Volatility Volatil=V3;                //The size of volatility to perform deal

The deals filtering carried out only by the entry, exits are without filtering.

Place EF_distance.ex5 and Flat-Trend.ex4 compiled files to the terminal_data_folder\MQL5\Indicators.

The Exp_EF_distance_ Expert Advisor is the same Expert Advisor but without use of volatility indicator!

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 on the chart.

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

Testing results for 2011 at EURAUD H4:

Fig. 2. Chart of testing results

Fig. 2. Chart of testing results

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/1389

The class for drawing the RSI using the ring buffer The class for drawing the RSI using the ring buffer

The class is designed for calculation of a technical indicator Relative Strength Index (Relative Strength Index, RSI) using the algorithm of the ring buffer.

DecEMA DecEMA

The Moving Average that represents itself a linear combination of the EMA smoothing series by the Exponential Moving Average (EMA).

PriceVSwma PriceVSwma

Variation on the non-trivial linear combination of stochastic oscillators

MultiTrend_Signal_KVN MultiTrend_Signal_KVN

The indicator of the famous trader Korykin