Class HeatmapRegionContainer
Levels of a rectangular area of a bar-indexed heatmap: read from a heatmap by GetVolumes(HeatmapRectangle) or written to one by AddRegion(HeatmapRegionContainer).
public class HeatmapRegionContainer
- Inheritance
-
objectHeatmapRegionContainer
- Extension Methods
Constructors
HeatmapRegionContainer(HeatmapRectangle, HeatmapLevel[,], decimal)
Creates a container over existing levels.
public HeatmapRegionContainer(HeatmapRectangle coordinates, HeatmapLevel[,] levels, decimal priceLevel)
Parameters
coordinatesHeatmapRectangleBars and prices of the area.
levelsHeatmapLevel[,]The levels, laid out as described for Array; the array is used as is.
priceLeveldecimalPrice step between adjacent rows.
Exceptions
- ArgumentNullException
levelsis null.- ArgumentOutOfRangeException
priceLevelis not positive.
Properties
Array
The levels, indexed as [bar - Coordinates.StartBar, row]; row 0 is the highest price and the last row
is LowPrice. The array is not copied.
public HeatmapLevel[,] Array { get; }
Property Value
- HeatmapLevel[,]
Coordinates
Bars and prices of the area.
public HeatmapRectangle Coordinates { get; }
Property Value
this[int, decimal]
Gets the level of a bar at a price.
public HeatmapLevel this[int bar, decimal price] { get; }
Parameters
barintBar index.
pricedecimalPrice; it is mapped to a row by its distance from LowPrice, truncated to whole price steps.
Property Value
Exceptions
- IndexOutOfRangeException
The bar or the price is outside the area.