|
GSupportAndResistance
The class GSupportAndResistance is setting important course marks at which support and resistance can be found.
Just create the class and the data will be determined automatically. The values can then be read and used with simple functions.
Creating and destroying the class
To create the class and destroy it when ending the program, 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 gently remove the class data. |
||
void |
Initialize the class defaults. Configure the class. |
|
void |
Optional initialization of the pivot points. |
|
void |
Writes all support and resistance information to a GStructSupportAndResistanceDetails object array. |
|
void |
Writes all prices of supports and resistances into a double array. |
|
void |
Adds the prices of the pivot points to a double array. |
|
void |
Draws support and resistance levels and pivot points on the chart. |
|
void |
Removes all drawings of the class from the chart. |
|
void |
Changes the text size of the chart markings created by the class. |
|
void |
Changes the multiplier for setting the maximum length of the drawn lines to the right. |
|
bool |
Checks if the class is ready for use. |
|
void |
Sets the chart events to reduce the class and to increase the clarity in the chart. |
Structures of the class
struct GStructSupportAndResistanceDetails |
Enumerations of the class
ENUM_SUPPORTANDRESISTANCE
Identifikator |
Description |
SAR_ALL |
All support and resistance lines and pivot points. Please note also .GetPivots() |
SAR_SUPPORT |
All support lines. |
SAR_RESISTANCE |
All resistance lines. |
SAR_PIVOT |
All pivot points. |
ENUM_PIVOTS
Identifier |
Description |
PIVOT |
Pivot Point |
PIVOT_S1 |
Pivot Support 1 |
PIVOT_S2 |
Pivot Support 2 |
PIVOT_S3 |
Pivot Support 3 |
PIVOT_R1 |
Pivot Resistance 1 |
PIVOT_R2 |
Pivot Resistance 2 |
PIVOT_R3 | Pivot Resistance 3 |