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)[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:
Return type:

tuple[set[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey], set[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey]]