|
GChartPatterns
The class GChartPatterns shows past and upcoming course formations.
All formations from the selected time units are considered.
Simply create the class and the data is automatically determined. The values can then be read out and used with simple functions.
Creating and Destroying the Class
To create the class and destroy it when the program ends, there are 5 simple steps necessary. You can find these steps in the example.
Example:
//--- Including 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 when starting until all data has been recorded.
To check if all data has been prepared and to avoid errors when starting, it is recommended to check the class function .Ready() on true.
Example:
void OnTick
() |
Functions of the class
Return value |
Function call |
Function |
Pre-destructor of the class. To remove the class data carefully. |
||
void |
Initialization of the class default data. Specify which default values the class should work with. |
|
bool |
Returns a signal and information as GStructChartPatterns when a formation reaches a certain point. |
|
GStructChartPatterns |
Writes all information of a finished/confirmed formation into a GStructChartPatterns object. |
|
void |
Writes all information about all finished/confirmed formations of a time unit in a GStructChartPatterns object array. |
|
void |
Writes all information about all upcoming formations of a time unit in a GStructChartPatterns object array. |
|
GStructChartPatterns |
Returns all information about a specific formation that occurs in a specific time unit as GStructChartPatterns. |
|
void |
Sets if patterns in build are drawn. |
|
void |
Sets if finished chart patterns are drawn. |
|
void |
If no other function calls are done, this function can be used to start the drawing of the formations. |
|
void |
Removes all drawings of the class from the chart. |
|
bool |
Checks if the class is ready for use. |
|
void |
Sets the chart events to enable the removal of the class and increase the visibility in the chart. |
Structures of the class
struct GStructChartPatterns struct GStructChartPatternsLines { double priceBegin; // Price of the beginning of the line datetime dateBegin; // Date of the beginning of the line int shiftBegin; // Bar shift of the beginning date double priceEnd; // Endprice of the line datetime dateEnd; // Enddate of the line int shiftEnd; // Bar shift of the end date }; |
Enumerations of the class
GEnumChartPatternsStates
Identifier |
Description |
CP_NONE |
No formation recognized. |
CP_CONSTRUCTIVE |
Potential pattern in build. |
CP_EARLYBIRD |
Last planned reversal point before the breakout. Order placement possibility for early birds. |
CP_BREAKOUT |
Breakout point from the formation. |
CP_FINISHED |
After the breakout, the formation has travelled a certain distance, which qualifies it as confirmed. |