QwtOHLCSample(3)

🌸 NAME 🌸

okay so bestie, you’re reading QwtOHLCSample(3) from the Library Functions Manual, and it’s literally the 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
bool isValid () const
  • QwtInterval boundingInterval () const β€” calculates the bounding interval of the OHLC values. πŸŽ€
  • bool isValid () const β€” checks whether 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 during a time interval is often represented by the opening/closing prices and the lowest/highest prices in that interval. slay, that’s the whole vibe.

See also: QwtTradingChartData

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

  • t β€” time value
  • 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]

Calculates the bounding interval of the OHLC values. For valid samples, the limits of this interval are always low/high. periodt. πŸ’…

Returns: bounding interval

See also: isValid()

Definition at line 220 of file qwt_samples.h.

bool QwtOHLCSample::isValid () const [inline]

Checks whether a sample is valid. A sample is valid when all of these checks are true:

  • low <= high
  • low <= open <= high
  • low <= close <= high

Returns: true when the sample is valid

Definition at line 203 of file qwt_samples.h.

πŸ¦‹ Member Data Documentation πŸ¦‹

double QwtOHLCSample::close

Closing price.

Definition at line 170 of file qwt_samples.h.

double QwtOHLCSample::high

Highest price.

Definition at line 164 of file qwt_samples.h.

double QwtOHLCSample::low

Lowest price.

Definition at line 167 of file qwt_samples.h.

double QwtOHLCSample::open

Opening price.

Definition at line 161 of file qwt_samples.h.

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.


mwah πŸ’‹ this one signs off with source/version Qwt User's Guide and page tag QwtOHLCSample(3) β€” no date in the footer, just those iconic little lines, bestie πŸ’–

πŸ“¦ where this page comes from