The Exp_ColorTrend_CF trading system is based on change of the trend direction displayed by the ColorTrend_CF indicator. The signal is formed when a bar is closing if there is change in cloud color of the indicator.
Place ColorTrend_CF.ex5 compiled file to the terminal_data_folder\MQL5\Indicators.
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.
Testing results for 2011 at XAUUSD H4:
Fig. 2. Chart of testing results.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1355
Initial library of combinatorics functions.The class for drawing Moving Average using the ring buffer
The class is designed for calculation of Moving Averages (Moving Average) using the algorithm of the ring buffer.
The class is designed for calculation of the Average True Range indicator (Average True Range, ATR) using the algorithm of the ring buffer.The class for drawing the ADX using the ring buffer
The class is designed for calculation of a technical indicator Average Directional Movement Index (Average Directional Movement Index, ADX) using the algorithm of the ring buffer.