OhlcSeriesPoint
A structure to contain OHLC series point values for the Y-Axis only
Implements: ISeriesPoint<double>, IComparable
Constructors
public OhlcSeriesPoint(double open, double high, double low, double close)
ohlcSeriesPoint = OhlcSeriesPoint(open, high, low, close)
Initializes a new instance of the OhlcSeriesPoint struct.
- open
- The open value.
- high
- The high value.
- low
- The low value.
- close
- The close value.
Properties
public double Close { get; private set; }
value = ohlcSeriesPoint.Close
ohlcSeriesPoint.Close = value
Gets the close value
public double High { get; private set; }
value = ohlcSeriesPoint.High
ohlcSeriesPoint.High = value
Gets the high value
public double Low { get; private set; }
value = ohlcSeriesPoint.Low
ohlcSeriesPoint.Low = value
Gets the low value
public double Max { get; }
value = ohlcSeriesPoint.Max
Gets the maximum of this ISeriesPoint. In the case of an OhlcSeriesPoint this would be the High value
public double Min { get; }
value = ohlcSeriesPoint.Min
Gets the minimum of this ISeriesPoint. In the case of an OhlcSeriesPoint this would be the Low value
public double Open { get; private set; }
value = ohlcSeriesPoint.Open
ohlcSeriesPoint.Open = value
Gets the open value
public double Y { get; }
value = ohlcSeriesPoint.Y
Gets the default Y-value of this ISeriesPoint. In the case of an OhlcSeriesPoint this would be the Close value
Methods
public int CompareTo(object obj)
result = ohlcSeriesPoint.CompareTo(obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
- obj
- An object to compare with this instance.
Returns: A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than . Zero This instance is equal to . Greater than zero This instance is greater than .