Expand description
TaEngine-based dynamic indicator calculation.
This module provides a bridge between the streaming motosan-ta-stream engine
and the existing TechnicalIndicators struct. It enables two workflows:
calculate_snapshotโ feeds candles through aTaEngineand returns aTaSnapshotcontaining all indicator values.snapshot_to_indicatorsโ converts aTaSnapshotback into the legacyTechnicalIndicatorsstruct for backward compatibility with the rule engine.
Helper functions get_snapshot_value / get_snapshot_sub_value provide direct
access to individual indicator values inside a snapshot.
Functionsยง
- build_
default_ engine - Build a
TaEnginewith the standard set of indicators used by strategy templates. The returned engine covers every indicator present inTechnicalIndicators. - calculate_
snapshot - Feed a slice of candles through a
TaEngineand return the final snapshot. - get_
snapshot_ sub_ value - Get a named sub-value from a multi-value indicator.
- get_
snapshot_ value - Get a single (or primary) value from a
TaSnapshotby indicator key. - snapshot_
to_ indicators - Convert a
TaSnapshotinto the legacyTechnicalIndicatorsstruct.