Idea by: Iurii Tokman.
MQL5 code by: Vladimir Karputov.
The EA does not use any indicators - only the current price and the OHLC of zero bar (the rightmost bar in the chart).
Working algorithm: As soon as the price rolls down from the High at the Rollback rate distance and we are within the new bar - it is a signal to open a BUY position; if the price moves above the Low at the Rollback rate distance and we are within the new bar - it is a signal to open a SELL position.
In the parameters, you can enable trailing and reversing signals for opening positions.
Test results (parameter "Balance max") for all symbols on D1 in the "Every tick based on real ticks" from 2018.01.01 to 2018.05.10:

Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/20721
EMAVFS_StDev
The EMAVFS indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.
ID_Close_Rectangle_TL_AL
A utility for closing (reducing the right side of the length) the rectangles, trendlines, or lines with arrows to some bars/candlesticks.
Four horizontal lines
The indicator plots four horizontal lines: Two basic ones (red by default) above the High and below the Low of the "Bar number" bar and help lines (green by default) shifted from the basic ones.
EMAVFS_StDev_HTF
Indicator EMAVFS_StDev with the timeframe selection option available in input parameters.