For the Expert Advisor work you need the BreakoutBarsTrend_v2 custom indicator (download in the MQL5/Indicators folder, and the given Expert Advisor is in the MQL5/Experts folder).
The meaning is in the following:
The signal is considered to be false if the distance in pips from close price of the first bar of the trend to the close price of the next trend is negative. The example of the false trend to sell (close[prev] - close[next] < 0, for the false trend to buy close[next] - close[prev] < 0):
Note! If the reversal mode is in percentage, the parameters of Delta, Stop-loss and Take-profit also must be set in percentage. If the reversal is in pips, then Delta, Stop-loss and Take-profit also must be set in pips!
The testing results at EURUSD H1, 2012. Reversal in percentage, Delta = 0.3%, stop-loss and take profit are equal to 1%.
a) The entry on each reversal (Number of false signals is equal to 0)
b) The same parameters, but the entry is after a series of false signals (Number of false signals is equal to 3)
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1397
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.