- bookworm 6.1.4-2
- testing 6.1.4-2
- unstable 6.1.4-2
- experimental 6.2.0-1
QwtOHLCSample(3) | Qwt User's Guide | QwtOHLCSample(3) |
NAME¶
QwtOHLCSample - Open-High-Low-Close sample used in financial charts.
SYNOPSIS¶
#include <qwt_samples.h>
Public Member Functions¶
QwtOHLCSample (double time=0.0, double
open=0.0, double high=0.0, double low=0.0, double
close=0.0)
QwtInterval boundingInterval () const
Calculate the bounding interval of the OHLC values. bool isValid ()
const
Check if a sample is valid.
Public Attributes¶
double time
double open
Opening price. double high
Highest price. double low
Lowest price. double close
Closing price.
Detailed Description¶
Open-High-Low-Close sample used in financial charts.
In financial charts the movement of a price in a time interval is often represented by the opening/closing prices and the lowest/highest prices in this interval.
See also
Definition at line 143 of file qwt_samples.h.
Constructor & Destructor Documentation¶
QwtOHLCSample::QwtOHLCSample (double t = 0.0, double o = 0.0, double h = 0.0, double l = 0.0, double c = 0.0) [inline]¶
Constructor
Parameters
o Open value
h High value
l Low value
c Close value
Definition at line 182 of file qwt_samples.h.
Member Function Documentation¶
QwtInterval QwtOHLCSample::boundingInterval () const [inline]¶
Calculate the bounding interval of the OHLC values. For valid samples the limits of this interval are always low/high.
Returns
See also
Definition at line 220 of file qwt_samples.h.
bool QwtOHLCSample::isValid () const [inline]¶
Check if a sample is valid. A sample is valid, when all of the following checks are true:
- low <= high
- low <= open <= high
- low <= close <= high
Returns
Definition at line 203 of file qwt_samples.h.
Member Data Documentation¶
double QwtOHLCSample::time¶
Time of the sample, usually a number representing a specific interval - like a day.
Definition at line 158 of file qwt_samples.h.
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Sun Jul 18 2021 | Version 6.2.0 |