|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Open-High-Low-Close sample used in financial charts 更多...
#include <qwt_samples.h>
Public 成员函数 | |
| QwtOHLCSample (double time=0.0, double open=0.0, double high=0.0, double low=0.0, double close=0.0) | |
| Constructor with all OHLC values | |
| QwtInterval | boundingInterval () const |
| Calculate the bounding interval of the OHLC values | |
| bool | isValid () const |
| Check if a sample is valid | |
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.
|
inline |
Constructor with all OHLC values
| t | Time value |
| o | Open value |
| h | High value |
| l | Low value |
| c | Close value |
|
inline |
Calculate the bounding interval of the OHLC values
For valid samples the limits of this interval are always low/high.
|
inline |
Check if a sample is valid
A sample is valid, when all of the following checks are true: