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:
pair (tradeexecutor.state.identifier.TradingPairIdentifier | None) –
definition (IndicatorDefinition) –
- Return type:
None
Methods
__init__
(pair, definition)Get unique key that holds the cached value for the indicator function.
Get unique value for this trading pair or 'universe' if there isn't one.
Attributes
Trading pair if this indicator is specific to a pair
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:
- get_cache_key()[source]#
Get unique key that holds the cached value for the indicator function.
- Return type:
- __init__(pair, definition)#
- Parameters:
pair (tradeexecutor.state.identifier.TradingPairIdentifier | None) –
definition (IndicatorDefinition) –
- Return type:
None