Skip to content

contango.stream.indicators.indicator

contango.stream.indicators.indicator

Indicator

Bases: Generic[R], Stream[R], ABC

Base class for all per-bar indicators.

Attributes:

Name Type Description
R

The return type for the indicator.

__repr__ abstractmethod

__repr__() -> str

Returns a string representation of the indicator.

Source code in src\contango\stream\indicators\indicator.py
20
21
22
23
24
25
@abstractmethod
def __repr__(self) -> str:
    """
    Returns a string representation of the indicator.
    """
    ...