添加优化超时
This commit is contained in:
@@ -33,7 +33,7 @@ class EAAutoScanner:
|
||||
"test_config": {
|
||||
"symbol": "EURUSD", "period": "H1",
|
||||
"from_date": "2025.01.01", "to_date": "2025.12.31",
|
||||
"model": 1, "deposit": 10000, "leverage": "1:100"
|
||||
"model": 1, "deposit": 10000, "leverage": "1:100", "timeout_min": 60
|
||||
},
|
||||
"walk_forward": {"enabled": False, "forward_mode": 0, "forward_date": ""}
|
||||
}
|
||||
|
||||
@@ -279,7 +279,8 @@ def generate_prompt(results: List[SetFileResult], output_dir: str = '.') -> List
|
||||
lines.append(' "optimization_mode": 2, // 优化模式: 0=禁用, 1=慢速完整算法, 2=快速遗传算法, 3=MarketWatch所有符号')
|
||||
lines.append(' "optimization_criterion": 1, // 优化指标: 0=余额最大, 1=盈利因子最大, 2=期望收益, 3=回撤最小, 4=恢复因子, 5=夏普比率, 6=自定义, 7=复合指标')
|
||||
lines.append(' "deposit": 10000, // 初始保证金')
|
||||
lines.append(' "leverage": "1:100" // 杠杆')
|
||||
lines.append(' "leverage": "1:100", // 杠杆')
|
||||
lines.append(' "timeout_min": 60 // 等待优化结果的超时(分钟)')
|
||||
lines.append(' },')
|
||||
lines.append(' "walk_forward": {')
|
||||
lines.append(' "enabled": true, // 是否启用前向测试')
|
||||
|
||||
Reference in New Issue
Block a user