11 #define QWT_SAMPLES_H 1
13 #include "qwt_global.h"
14 #include "qwt_interval.h"
55 double v,
double min,
double max ):
72 return !( *
this == other );
80 QwtSetSample(
double,
const QVector<double> & = QVector<double>() );
124 return !( *
this == other );
131 for (
int i = 0; i <
set.size(); i++ )
150 double open = 0.0,
double high = 0.0,
151 double low = 0.0,
double close = 0.0 );
155 bool isValid()
const;
187 double o,
double h,
double l,
double c ):
227 minY = qMin( minY,
high );
228 minY = qMin( minY,
low );
229 minY = qMin( minY,
close );
232 maxY = qMax( maxY,
high );
233 maxY = qMax( maxY,
low );
234 maxY = qMax( maxY,
close );
double close
Closing price.
Definition: qwt_samples.h:173
Open-High-Low-Close sample used in financial charts.
Definition: qwt_samples.h:147
double value
value
Definition: qwt_samples.h:88
double added() const
Definition: qwt_samples.h:128
double low
Lowest price.
Definition: qwt_samples.h:170
QwtOHLCSample(double time=0.0, double open=0.0, double high=0.0, double low=0.0, double close=0.0)
Definition: qwt_samples.h:186
QwtIntervalSample()
Definition: qwt_samples.h:40
double value
Value.
Definition: qwt_samples.h:30
QwtInterval interval
Interval.
Definition: qwt_samples.h:33
bool operator!=(const QwtIntervalSample &) const
Compare operator.
Definition: qwt_samples.h:69
bool operator==(const QwtIntervalSample &) const
Compare operator.
Definition: qwt_samples.h:62
bool operator!=(const QwtSetSample &other) const
Compare operator.
Definition: qwt_samples.h:122
A sample of the types (x1...xn, y) or (x, y1..yn)
Definition: qwt_samples.h:77
bool isValid() const
Check if a sample is valid.
Definition: qwt_samples.h:207
QVector< double > set
Vector of values associated to value.
Definition: qwt_samples.h:91
double open
Opening price.
Definition: qwt_samples.h:164
double high
Highest price.
Definition: qwt_samples.h:167
A class representing an interval.
Definition: qwt_interval.h:27
A sample of the types (x1-x2, y) or (x, y1-y2)
Definition: qwt_samples.h:20
QwtInterval boundingInterval() const
Calculate the bounding interval of the OHLC values.
Definition: qwt_samples.h:224
QwtSetSample()
Definition: qwt_samples.h:98
bool operator==(const QwtSetSample &other) const
Compare operator.
Definition: qwt_samples.h:116
double time
Definition: qwt_samples.h:161