Struct HeatmapCandle
- Namespace
- ATAS.Indicators.Heatmap
- Assembly
- ATAS.Indicators.dll
A copy of one candle of a candle series delivered to a heatmap indicator. Times are the candle times exactly as the chart stores them (Time, LastTime): pass them to IHeatmapTradingCalendar as they are; ToTimelineNanos(DateTime) places them on the heatmap timeline.
Not in ATAS 8.0.15 yet: available from the next version.
public readonly struct HeatmapCandle
- Extension Methods
Constructors
HeatmapCandle(DateTime, DateTime, decimal, decimal, decimal, decimal, decimal, decimal, decimal)
A copy of one candle of a candle series delivered to a heatmap indicator. Times are the candle times exactly as the chart stores them (Time, LastTime): pass them to IHeatmapTradingCalendar as they are; ToTimelineNanos(DateTime) places them on the heatmap timeline.
public HeatmapCandle(DateTime Time, DateTime LastTime, decimal Open, decimal High, decimal Low, decimal Close, decimal Volume, decimal Bid, decimal Ask)
Parameters
TimeDateTimeThe candle open time (Time).
LastTimeDateTimeThe time of the last trade in the candle (LastTime).
OpendecimalThe open price.
HighdecimalThe high price.
LowdecimalThe low price.
ClosedecimalThe close price (the last price while the candle is forming).
VolumedecimalThe traded volume.
BiddecimalThe volume traded at the bid (sells).
AskdecimalThe volume traded at the ask (buys).
Properties
Ask
The volume traded at the ask (buys).
public decimal Ask { get; init; }
Property Value
- decimal
Bid
The volume traded at the bid (sells).
public decimal Bid { get; init; }
Property Value
- decimal
Close
The close price (the last price while the candle is forming).
public decimal Close { get; init; }
Property Value
- decimal
High
The high price.
public decimal High { get; init; }
Property Value
- decimal
LastTime
The time of the last trade in the candle (LastTime).
public DateTime LastTime { get; init; }
Property Value
- DateTime
Low
The low price.
public decimal Low { get; init; }
Property Value
- decimal
Open
The open price.
public decimal Open { get; init; }
Property Value
- decimal
Time
The candle open time (Time).
public DateTime Time { get; init; }
Property Value
- DateTime
Volume
The traded volume.
public decimal Volume { get; init; }
Property Value
- decimal
Methods
Deconstruct(out DateTime, out DateTime, out decimal, out decimal, out decimal, out decimal, out decimal, out decimal, out decimal)
public void Deconstruct(out DateTime Time, out DateTime LastTime, out decimal Open, out decimal High, out decimal Low, out decimal Close, out decimal Volume, out decimal Bid, out decimal Ask)
Parameters
TimeDateTimeLastTimeDateTimeOpendecimalHighdecimalLowdecimalClosedecimalVolumedecimalBiddecimalAskdecimal
Equals(HeatmapCandle)
public bool Equals(HeatmapCandle other)
Parameters
otherHeatmapCandle
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
From(IndicatorCandle)
Copies the values of a chart candle.
public static HeatmapCandle From(IndicatorCandle candle)
Parameters
candleIndicatorCandleThe candle to copy.
Returns
- HeatmapCandle
The copy.
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(HeatmapCandle, HeatmapCandle)
public static bool operator ==(HeatmapCandle left, HeatmapCandle right)
Parameters
leftHeatmapCandlerightHeatmapCandle
Returns
- bool
operator !=(HeatmapCandle, HeatmapCandle)
public static bool operator !=(HeatmapCandle left, HeatmapCandle right)
Parameters
leftHeatmapCandlerightHeatmapCandle
Returns
- bool