|
GChartPatterns.Init()
This is used to prepare the data of GChartPatterns.
The call must still take place before the first call of a data-reading function.
void GChartPatterns.Init( |
Parameter
symbol
[in] The symbol whose data the class is to process.
Periodes
[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.
ExtBarHistory
[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.
TolerancePercent
[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.
ExtDepth
[in] The minimum range in bars between two top- or bottom- extreme points that should be recognized as movement.
ExtDeviation
[in] The percentage value for the reversal of an extreme point at which a Zig turns into a Zag again and vice versa.
ExtBackstep
[in] The minimum range in bars between two extreme points that should be recognized as a movement.
Notice
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.
Example:
//--- Including the Glib class |
See also
GChartPatterns, GChartPatterns.JustPaint, GChartPatterns.SetPaintBuild, GChartPatterns.SetPaintFinish, GChartPatterns.Ready, GChartPatterns.ChartEvent