Skip to main content

Module indicator

Module indicator 

Source
Expand description

Core Indicator trait and IndicatorOutput type.

Mirrors indicators/base.py:

  • Indicatorclass Indicator(Component, ABC)
  • IndicatorOutputpd.DataFrame return value
  • required_columns()@classmethod required_columns()
  • calculate()def calculate(self, data, price_column)

Every indicator in trend/, momentum/, volume/, and other/ must implement this trait. The registry (registry.rs) stores Box<dyn Indicator> values so they can be created by name at runtime, matching Python’s @register_indicator / IndicatorRegistry.

Structs§

IndicatorOutput
Named column output, analogous to pd.DataFrame returned by Python calculate().

Enums§

PriceColumn
Which single OHLCV field to extract as a price series.

Traits§

Indicator
The core trait every indicator must implement.