Idea by: Alex.
MQL5 code by: Vladimir Karputov.
The EA uses custom indicator ExVol:

Separate stop loss, take profit, and trailing are used for BUY and SELL positions.
Example of testing on EURUSD,M15:

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/21086
CaudateXPeriodCandle_main
Indicator CaudateXPeriodCandle in the main chart
CaudateXPeriodCandleRange
An indicator that draws the CaudateXPeriodCandle candlestick sizes in points.
CaudateXPeriodCandle_main_Arrow
Indicator CaudateXPeriodCandle in the main chart, highlighting with colored points caudate candlesticks of the "Hammer" and "Reversed Hammer" types only.
ID_Close_Rectangle
A utility for closing (reducing the right side of the length) the rectangles.