|
GBar
The GBar class provides quick access to various candlestick helpers.
Create and destroy the class
To create the class and destroy it when the program ends, 5 simple steps are necessary. You can see these steps in the example.
Example:
//--- Include Glib |
From this point on you can use the class functions.
Class functions
Return value |
Function call |
Function |
void |
To change the symbol. |
|
double |
Returns the current Bid. |
|
double |
Returns the current Ask. |
|
double |
Returns the current spread |
|
double |
Returns the highest point of a candle. |
|
double |
Returns the lowest point of a candle. |
|
double |
Returns the opening price of a candle. |
|
double |
Returns the closing price of a candle. |
|
bool |
Checks if the candle is bullish. |
|
bool |
Checks if the candle is bearish. |
|
double |
Returns the price in the middle of the highest and lowest point of a candle. |
|
double |
Returns the price in the middle of the opening and closing price. |
|
double |
Returns the spread of a candle from the lowest to the highest point. |
|
double |
Returns the candle spread from the opening to the closing price. |
|
bool |
Checks if a candle "peaks" upwards into a value |
|
bool |
Checks if a candle "peaks" downwards into a value |