新增实盘策略:ITrendStrategy(SA)

This commit is contained in:
2026-01-25 23:26:03 +08:00
parent 4a37652269
commit fa4749b02e
66 changed files with 44943 additions and 5961 deletions

View File

@@ -57,8 +57,10 @@ def run_single_backtest(
if 'kalman_measurement_noise' in common_config:
strategy_parameters['kalman_measurement_noise'] = common_config['kalman_measurement_noise']
if 'entry_threshold_atr' in common_config:
if 'entry_threshold_atr' in common_config and 'entry_threshold_atr' not in strategy_parameters:
strategy_parameters['entry_threshold_atr'] = common_config['entry_threshold_atr']
elif 'entry_threshold_atr' not in strategy_parameters:
strategy_parameters['entry_threshold_atr'] = strategy_parameters['structural_stop_atr_multiplier']
# 打印当前进程正在处理的组合信息
# 注意:多进程打印会交错显示