Libraries: IncFractalsOnArray

 

IncFractalsOnArray:

The CFractalsOnArray class is intended for calculation of Fractals on indicator buffers.

The Test_FractalsOnArray.mq5 file is an indicator demonstrating how to use the CFractalsOnArray class. The IncFractalsOnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created).

A Fractal is one of five indicators of Bill Williams’ trading system, which allows to detect the bottom or the top.

Technical definition of the upwards fractal is a series of at least five successive bars, with the highest HIGH in the middle, and two lower HIGHs on both sides. The reversing set is a series of at least five successive bars, with the lowest LOW in the middle, and two higher LOWs on both sides, which correlates to the sell fractal. The fractals have High and Low values and are indicated with the up and down arrows in a chart.

Author: Дмитрий

An example of using the CFractalsOnArray class