新增实盘策略:ITrendStrategy(SA)
This commit is contained in:
@@ -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']
|
||||
|
||||
# 打印当前进程正在处理的组合信息
|
||||
# 注意:多进程打印会交错显示
|
||||
|
||||
Reference in New Issue
Block a user