Class Range
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
Encapsulates a high/low range.
public class Range
- Inheritance
-
Range
- Inherited Members
- Extension Methods
Constructors
Range(double, double)
Instantiates a new Range object.
public Range(double low, double high)
Parameters
Properties
High
Gets the high.
public double High { get; }
Property Value
Low
Gets the low.
public double Low { get; }
Property Value
Midpoint
Gets the midpoint of the range.
public double Midpoint { get; }
Property Value
Width
Gets the range (high - low).
public double Width { get; }
Property Value
Methods
Contains(Range)
Returns true if the specified range is entirely within this range.
public bool Contains(Range range)
Parameters
range
Range
Returns
Contains(double)
Returns true if the specified point is within the range.
public bool Contains(double point)
Parameters
point
double
Returns
ToString()
Returns a string representation of this object.
public override string ToString()