A Line (ray) is attached to the top or bottom of the candle when the last Advanced Fractal Indicator MT5 (provided) dot appears.
The line will hug the candles moving down or up and after a specified amount of candles will activate a trailing buy via the angle output trail activation.
The line will contain a buffered angle output once this trailing stop activates, so its not working on price action, its working on angle.
I can provide many source code indicators that give all the needed coding but don’t know how to put it together. Example, auto trend lines, Angled line coding, Advanced Fractal Indicator
The settings will be
Advanced Fractal value=
Trail angle =
Trail angle step buy=
See attached drawing of what the indicator will look like