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_key()

Get unique key that holds the cached value for the indicator function.

get_pair_cache_id()

Get unique value for this trading pair or 'universe' if there isn't one.

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

None if this indicator is for the whole universe, using everything as an input.

definition: IndicatorDefinition#

The definition of this indicator

get_pair_cache_id()[source]#

Get unique value for this trading pair or ‘universe’ if there isn’t one.

Return type:

str

get_cache_key()[source]#

Get unique key that holds the cached value for the indicator function.

Return type:

str

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

None