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) |
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:
ResetAsync. WarmUpAsync with the incoming request — the guard captures HeatmapIndicatorWarmupRequest.IsFallbackRange and re-arms the latch. 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.
| void ATAS.Indicators.Heatmap.HeatmapIndicatorFallbackReWarmGuard.OnWarmedUp | ( | HeatmapIndicatorWarmupRequest | request | ) |
| void ATAS.Indicators.Heatmap.HeatmapIndicatorFallbackReWarmGuard.Reset | ( | ) |
| bool ATAS.Indicators.Heatmap.HeatmapIndicatorFallbackReWarmGuard.ShouldRequestReWarm | ( | HeatmapTickBatch | ticks | ) |