IndicatorKey#

API documentation for tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey Python class in Trading Strategy framework.

class IndicatorKey[source]#

Bases: object

Cache key used to read indicator results.

  • Used to describe all indicator combinations we need to create

  • Used as the key in the indicator result caching

__init__(pair, definition)#
Parameters:
Return type:

None

Methods

__init__(pair, definition)

get_cache_id()

get_cache_key()

Attributes

pair

Trading pair if this indicator is specific to a pair

definition

The definition of this indicator

pair: tradeexecutor.state.identifier.TradingPairIdentifier | None#

Trading pair if this indicator is specific to a pair

Note if this indicator is for the whole strategy

definition: IndicatorDefinition#

The definition of this indicator

__init__(pair, definition)#
Parameters:
Return type:

None