Skip to main content

snapshot_to_indicators

Function snapshot_to_indicators 

Source
pub fn snapshot_to_indicators(snapshot: &TaSnapshot) -> TechnicalIndicators
Expand description

Convert a TaSnapshot into the legacy TechnicalIndicators struct.

This enables backward compatibility: callers that still use evaluate_rules(&rules, &indicators, ...) can obtain a TechnicalIndicators from a snapshot without changing any downstream code.