Advanced Fractal indicator allows you to change, length of time frame that is checked. The algorithm allows only odd numbers.
To determine the fractal is used (2*Frames+1) candles. The central candle should be higher/lower than [Frame] right-hand and [Frame] left-hand candles.
Download:
Envelops are calculated as the average of a defined number of fractals.
Download:
Advanced fractal lines with horizontal lines.
Download: