warm_up_indicator_cache#
API documentation for tradeexecutor.strategy.pandas_trader.indicator.warm_up_indicator_cache Python function.
- warm_up_indicator_cache(strategy_universe, storage, execution_context, indicators, max_workers=8, all_combinations=None)[source]#
Precalculate all indicators.
Used for grid search
Calculate indicators using multiprocessing
Display TQDM progress bars for loading cached indicators and calculating new ones
Use cached indicators if available
- Returns:
Tuple (Cached indicators, calculated indicators)
- Parameters:
strategy_universe (TradingStrategyUniverse) –
storage (DiskIndicatorStorage) –
execution_context (ExecutionContext) –
indicators (set[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey]) –
all_combinations (set[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey] | None) –
- Return type:
tuple[set[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey], set[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey]]