This is used to prepare the data of GChartPatterns.
The call must still take place before the first call of a data-reading function.
[in] The symbol whose data the class is to process.
[in] The timeframes on which the class is to process the data. These are specified in short form and separated by a comma without spaces. "H1,W1" thus corresponds to PERIOD_H1 and PERIOD_W1 or 1 hour and 1 week.
[in] Number of bars to be processed. The more bars, the more past formations are displayed and taken into account in the probability calculation. High values can heavily load the processor.
[in] The tolerance around the target points for the recognition of a formation. Smaller values mean that the formation must be executed more precisely. The tolerance is calculated dynamically on the movement of the last 20 bars.
[in] The minimum range in bars between two top- or bottom- extreme points that should be recognized as movement.
[in] The percentage value for the reversal of an extreme point at which a Zig turns into a Zag again and vice versa.
[in] The minimum range in bars between two extreme points that should be recognized as a movement.
The .Init() function call can be used at any point in the code. It can also be used multiple times to change data during runtime. However, it is recommended to call it at least once in the OnInit() and to check the data with .Ready() for completeness.
//--- Including the Glib class
GChartPatterns, GChartPatterns.JustPaint, GChartPatterns.SetPaintBuild, GChartPatterns.SetPaintFinish, GChartPatterns.Ready, GChartPatterns.ChartEvent