Skip to content

trading.indicators.indicator

trading.indicators.indicator

Indicator

Bases: ABC, Generic[TOut]

Base class for all per-bar indicators.

update abstractmethod

update(*args: Any, **kwargs: Any) -> TOut

Updates the state of the indicator given any arguments.

Source code in src\contango\trading\indicators\indicator.py
29
30
31
32
33
34
@abstractmethod
def update(self, *args: Any, **kwargs: Any) -> TOut:
    """
    Updates the state of the indicator given any arguments.
    """
    ...