Loading...
Searching...
No Matches
ATAS.Indicators.Heatmap.HeatmapIndicatorFallbackReWarmGuard Class Reference

State holder for indicators whose calculation is anchored at the real data start (e.g. CVD FromDataStart, VWAP FromDataStart) and may receive a fallback-range warm-up before the host knows the real data start. Encapsulates the latch protocol so the indicator does not have to track three flags and an inline check by hand. More...

Public Member Functions

void Reset ()
 
void OnWarmedUp (HeatmapIndicatorWarmupRequest request)
 
bool ShouldRequestReWarm (HeatmapTickBatch ticks)
 

Detailed Description

State holder for indicators whose calculation is anchored at the real data start (e.g. CVD FromDataStart, VWAP FromDataStart) and may receive a fallback-range warm-up before the host knows the real data start. Encapsulates the latch protocol so the indicator does not have to track three flags and an inline check by hand.

Usage:

  • Construct once per instance, typically as a readonly field.
  • Call Reset from ResetAsync.
  • Call OnWarmedUp from WarmUpAsync with the incoming request — the guard captures HeatmapIndicatorWarmupRequest.IsFallbackRange and re-arms the latch.
  • Call ShouldRequestReWarm from ProcessTicksAsync after processing the batch; if it returns true, await IHeatmapIndicatorRuntime.RequestReWarmAsync.

The guard latches per warm-up cycle: ShouldRequestReWarm returns true at most once between two OnWarmedUp calls, so repeated tick batches do not re-trigger. A fresh warm-up re-arms the latch for the next fallback episode.

Threading: per-instance, lock-free. The platform serialises calls on a single indicator instance, which is also the only valid caller of this guard.

Member Function Documentation

◆ OnWarmedUp()

void ATAS.Indicators.Heatmap.HeatmapIndicatorFallbackReWarmGuard.OnWarmedUp ( HeatmapIndicatorWarmupRequest  request)

◆ Reset()

void ATAS.Indicators.Heatmap.HeatmapIndicatorFallbackReWarmGuard.Reset ( )

◆ ShouldRequestReWarm()

bool ATAS.Indicators.Heatmap.HeatmapIndicatorFallbackReWarmGuard.ShouldRequestReWarm ( HeatmapTickBatch  ticks)

The documentation for this class was generated from the following file: