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

dict[tradeexecutor.strategy.pandas_trader.indicator.IndicatorKey, tradeexecutor.strategy.pandas_trader.indicator.IndicatorResult]