QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
QwtOHLCSample类 参考

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
 

Public 属性

double time
 Time of the sample, usually a number representing a specific interval - like a day.
 
double open
 Opening price
 
double high
 Highest price
 
double low
 Lowest price
 
double close
 Closing price
 

详细描述

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.

参见
QwtTradingChartData

构造及析构函数说明

◆ QwtOHLCSample()

QwtOHLCSample::QwtOHLCSample ( double  t = 0.0,
double  o = 0.0,
double  h = 0.0,
double  l = 0.0,
double  c = 0.0 
)
inline

Constructor with all OHLC values

参数
tTime value
oOpen value
hHigh value
lLow value
cClose value

成员函数说明

◆ boundingInterval()

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.

返回
Bounding interval
参见
isValid()

◆ isValid()

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
    返回
    True, when the sample is valid

该类的文档由以下文件生成: