Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).
Functions://+------------------------------------------------------------------+ //| calculate lower fractals                                        | //+------------------------------------------------------------------+ bool CalcFrac :: is_lower_fr(int number_of_bars) //+------------------------------------------------------------------+ //| calculate upper fractals                                        | //+------------------------------------------------------------------+ bool CalcFrac :: is_upper_fr(int number_of_bars)
Sample:
Indicator : FractalsPeriod