IncFractalsOnArray - MetaTrader 5 Library - MT4/MT5 Resources

CFractalsOnArray class is used to calculate fractals on indicator buffers.
No preparation (initialization) is required.
This solve() function calls the OnCalculate() method with the following parameters:
The Test_FractalsOnArray.mq5 file is an indicator of 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 in the Bill Williams trading system that can detect bottoms or tops. The technical definition of an upward fractal is a series of at least five consecutive bars with the highest high in the middle and two lower highs on either side. A reversal group is a series of at least five consecutive bars with the lowest low in the middle and two higher lows on either side, which is associated with a sell fractal. Fractal displays upper and lower values and is marked with colored symbols on the chart.

Attachment download
📎 test_fractalsonarray.mq5 (2.83 KB)
📎incfractalsonarray.mqh (3.91 KB)
Source: MQL5 #659
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •