|
GZigZag
The class GZigZag offers the possibility to use the ZigZag indicator in a very simple way.
Simply create the class and the data will be automatically determined. From then on, the values can be read out with the simple specification of the shift offset of the desired Zig-Zag.
Creating and destroying the class
To create the class and destroy it when finished, 5 simple steps are necessary. You can take these steps from the example.
Example:
//--- Include Glib classes |
From this point on you can use the class functions.
Due to the amount of data Glib produces, a few ticks are required to collect all data when starting.
To check whether all data has been prepared and to avoid errors when starting, it is recommended to check the class function .Ready() for true.
Example:
void OnTick
() |
Class functions
Return value |
Function call |
Function |
Pre-destruction of the class. To remove the class data gently. |
||
void |
Initialization of the class default data. Set up with which default values the class should work. |
|
GStructZigZag |
Get a GStructZigZag object with the data of a given extreme point. |
|
void |
Write all extreme point object data to a GStructZigZag array. |
|
void |
Write all line lengths between the extreme points into a double array. |
|
double |
Get the price of a given extreme point. |
|
void |
Write all extreme point prices into a double array. |
|
bool |
Checks if the class is ready to use. |
Class Structures
struct GStructZigZag |