Used to prepare the data of GSupportAndResistance.
The call must take place before the first call of a data-reading function.
[in] The symbol of which the data is to be processed by the class.
[in] The time frames on which the class should process the data. These are specified in short form and separated by a comma without spaces. "H1,W1" therefore corresponds to PERIOD_H1 and PERIOD_W1 or 1 hour and 1 week.
[in] If set to true only support and resistance levels are used that have not been broken yet.
[in] Minimum number of touches to create a resistance or support.
[in] Number of bars to be processed. The more bars, the more past extreme points are taken into account.
[in] The tolerance around the first extremum to create a support or resistance. Smaller values lead to the need for a repeated touch of the price level to be more precise. The tolerance is calculated dynamically based 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 extremes that should be recognized as a movement.
The .Init() function call can be made at any location 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 check the data with .Ready() for completeness.
//--- Include Glib classes
SupportAndResistance, GSupportAndResistance.InitPivots, GSupportAndResistance.SetMarkersLengthRight, GSupportAndResistance.SetFontSize, GSupportAndResistance.Ready