logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtOHLCSample - Open-High-Low-Close sample used in financial charts.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                                 QwtOHLCSample(3)

Constructor & Destructor Documentation

QwtOHLCSample::QwtOHLCSample(doublet=0.0,doubleo=0.0,doubleh=0.0,doublel=0.0,doublec=0.0)[inline]
       Constructor

       Parameters:t Time value
           o Open value
           h High value
           l Low value
           c Close value

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.

       Seealso:QwtTradingChartData

Member Data Documentation

doubleQwtOHLCSample::time
       Time of the sample, usually a number representing a specific interval - like a day.

Member Function Documentation

QwtIntervalQwtOHLCSample::boundingInterval()const[inline]
       Calculate the bounding interval of the OHLC values. For valid samples the limits of this interval are
       always low/high.

       Returns:
           Bounding interval

       Seealso:isValid()boolQwtOHLCSample::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:
           True, when the sample is valid

Name

       QwtOHLCSample - Open-High-Low-Close sample used in financial charts.

Synopsis

       #include <qwt_samples.h>

   PublicMemberFunctionsQwtOHLCSample (double time=0.0, double open=0.0, double high=0.0, double low=0.0, double close=0.0)
       QwtIntervalboundingInterval () const
           Calculate the bounding interval of the OHLC values.
       bool isValid () const
           Check if a sample is valid.

   PublicAttributes
       double time
       double open
           Opening price.
       double high
           Highest price.
       double low
           Lowest price.
       double close
           Closing price.

See Also