calculate_and_load_indicators#
API documentation for tradeexecutor.strategy.pandas_trader.indicator.calculate_and_load_indicators Python function.
- calculate_and_load_indicators(strategy_universe, storage, execution_context, parameters=None, indicators=None, create_indicators=None, max_workers=<function get_safe_max_workers_count>, max_readers=<function get_safe_max_workers_count>, verbose=True, timestamp=None)[source]#
Precalculate all indicators.
Calculate indicators using multiprocessing
Display TQDM progress bars for loading cached indicators and calculating new ones
Use cached indicators if available
- Parameters:
cache_warmup_only – Only fill the disk cache, do not load results in the memory.
verbose – Stdout printing with heplful messages to the user
strategy_universe (TradingStrategyUniverse) –
storage (IndicatorStorage) –
execution_context (ExecutionContext) –
parameters (Optional[StrategyParameters]) –
indicators (Optional[IndicatorSet]) –
create_indicators (Optional[CreateIndicatorsProtocolV1]) –
- Return type:
dict[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey, tradeexecutor.strategy.pandas_trader.indicator.IndicatorResult]