Skip to content

IndicatorHistory

QuantConnect.Data.IndicatorHistory

IndicatorHistory(
    indicators_data_points_by_time: List[
        IndicatorDataPoints
    ],
    indicators_data_point_per_property: List[
        InternalIndicatorValues
    ],
    dataframe: Lazy[Any],
)

Bases: DataHistory[IndicatorDataPoints]

Provides historical values of an indicator

Creates a new instance

Parameters:

Name Type Description Default
indicators_data_points_by_time List[IndicatorDataPoints]

Indicators data points by time

required
indicators_data_point_per_property List[InternalIndicatorValues]

Indicators data points by property name

required
dataframe Lazy[Any]

The lazy data frame constructor

required

current

current: List[IndicatorDataPoint]

The indicators historical values

data

data: Iterable[QuantConnect_Data_DataHistory_T]

The data we hold

This codeEntityType is protected.

count

count: int

The current data point count

data_frame

data_frame: Any

This data pandas data frame

__getitem__

__getitem__(name: str) -> List[IndicatorDataPoint]

Access the historical indicator values per indicator property name

__iter__

__iter__() -> Iterator[QuantConnect_Data_DataHistory_T]

get_enumerator

get_enumerator() -> (
    IEnumerator[QuantConnect_Data_DataHistory_T]
)

Returns an enumerator for the data

to_string

to_string() -> str

Default to string implementation