modified help-string for the cli-option lookahead_analysis_exportfilename

moved doc from utils.md to lookahead-analysis.md and modified it (unfinished)
added a check to automatically edit the config['backtest_cache'] to be 'none'
This commit is contained in:
hippocritical
2023-05-27 22:31:47 +02:00
parent 0ed84fbcc1
commit 9bb25be880
4 changed files with 91 additions and 34 deletions

View File

@@ -110,6 +110,17 @@ class LookaheadAnalysisSubFunctions:
"targeted trade amount can't be smaller than minimum trade amount."
)
# enforce cache to be 'none', shift it to 'none' if not already
# (since the default value is 'day')
if config.get('backtest_cache') is None:
config['backtest_cache'] = 'none'
elif config['backtest_cache'] != 'none':
logger.info(f"backtest_cache = "
f"{config['backtest_cache']} detected. "
f"Inside lookahead-analysis it is enforced to be 'none'. "
f"Changed it to 'none'")
config['backtest_cache'] = 'none'
strategy_objs = StrategyResolver.search_all_objects(
config, enum_failed=False, recursive=config.get('recursive_strategy_search', False))