Table of Contents

Class HeatmapCandleSeriesRequestComparer

Namespace
ATAS.Indicators.Heatmap
Assembly
ATAS.Indicators.dll

Decides which CandleSeriesRequests describe the same candle series for heatmap indicators (IHeatmapCandleConsumer): equal requests share one subscription and receive the same updates.

Two requests are equal when they have the same timeframe (ExoticTimeFrame with all its parameters when set, otherwise TimeFrame), the same instrument (an empty instrument means the heatmap instrument; codes and exchanges compare case-insensitively), the same history depth after clamping to 1..30 days, and the same TradingSessionId.

Not in ATAS 8.0.15 yet: available from the next version.

public sealed class HeatmapCandleSeriesRequestComparer
Inheritance
object
HeatmapCandleSeriesRequestComparer
Extension Methods

Fields

Instance

The shared instance.

public static readonly HeatmapCandleSeriesRequestComparer Instance

Field Value

HeatmapCandleSeriesRequestComparer

Methods

Equals(CandleSeriesRequest?, CandleSeriesRequest?)

Determines whether two requests describe the same candle series.

public bool Equals(CandleSeriesRequest? x, CandleSeriesRequest? y)

Parameters

x CandleSeriesRequest

The first request.

y CandleSeriesRequest

The second request.

Returns

bool

true when the requests describe the same series.

GetEffectiveDaysToLoad(CandleSeriesRequest)

History depth in days the platform actually loads for a request: DaysToLoad clamped to 1..30.

public static int GetEffectiveDaysToLoad(CandleSeriesRequest request)

Parameters

request CandleSeriesRequest

The request.

Returns

int

The effective depth in days.

GetHashCode(CandleSeriesRequest)

Returns a hash code consistent with Equals(CandleSeriesRequest?, CandleSeriesRequest?).

public int GetHashCode(CandleSeriesRequest obj)

Parameters

obj CandleSeriesRequest

The request.

Returns

int

The hash code.