Class OHLC

  • All Implemented Interfaces:
    java.lang.Cloneable

    public final class OHLC
    extends GSeriesValue
    The OHLC series value with Open, High, Mid, Low and Close values where Mid is optional.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      doubleclose
      The High value.
      doublehigh
      The High value.
      doublelow
      The High value.
      doublemid
      The Mid value (or Double.NaN for none).
      doubleopen
      The Open value.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      OHLC​(double open, double high, double low, double close)
      Constructor for the OHLC value point without Mid value.
      OHLC​(double open, double high, double mid, double low, double close)
      Constructor for the OHLC value point.
    • Field Detail

      • open

        public final double open
        The Open value. An unspecified value is Double.NaN.
      • high

        public final double high
        The High value. An unspecified value is Double.NaN.
      • mid

        public final double mid
        The Mid value (or Double.NaN for none).
      • low

        public final double low
        The High value. An unspecified value is Double.NaN.
      • close

        public final double close
        The High value. An unspecified value is Double.NaN.
    • Constructor Detail

      • OHLC

        public OHLC​(double open,
                    double high,
                    double low,
                    double close)
        Constructor for the OHLC value point without Mid value.
        Parameters:
        open - The Open value, Double.NaN for no value.
        high - The High value, Double.NaN for no value.
        low - The Low value, Double.NaN for no value.
        close - The Close value, Double.NaN for no value.
      • OHLC

        public OHLC​(double open,
                    double high,
                    double mid,
                    double low,
                    double close)
        Constructor for the OHLC value point.
        Parameters:
        open - The Open value, Double.NaN for no value.
        high - The High value, Double.NaN for no value.
        mid - The Mid value, Double.NaN for no value.
        low - The Low value, Double.NaN for no value.
        close - The Close value, Double.NaN for no value.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Checks if two fill objects are equal.
        Specified by:
        equals in class GSeriesValue