Class CalcFrac – Number of bars before and after the current High / Low (calculated fractal) – library MetaTrader 5

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

📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks