优化修改正常

This commit is contained in:
2026-07-06 04:24:43 +08:00
parent 160c68da39
commit 15716894bc
4 changed files with 178 additions and 74 deletions
+16 -17
View File
@@ -1,35 +1,34 @@
backtest_settings:
currency: USD
date_range:
from: 2018.01.01
to: 2026.06.04
deposit: 1000.0
execution_delay: 100
from: 2024.01.01
to: 2025.12.31
deposit: 10000
execution_delay: 0
forward_date: ''
forward_mode: 2
leverage: 1:500
forward_mode: 0
leverage: 1:100
model: 0
optimization: 0
replace_report: true
shutdown_terminal: true
symbols:
- EURUSD
- XAUUSD
timeframes:
- M5
- H1
visual: 0
eas:
- filename: MY-EA\without source code\The Gold Reaper MT5_4.3_fix.ex5
name: The Gold Reaper MT5_4.3_fix
eas: []
execution:
kill_between: true
skip_existing: true
timeout_per_test: 300000
# mt5_settings: 路径支持占位符与自动检测(见 scripts/mt5_paths.py
# {PROJECT_ROOT} → 项目根目录绝对路径(推荐,确保项目拷到任意位置都能跑)
# 留空字符串 → 启动时自动扫描常见位置(Program Files / %APPDATA%/MetaQuotes/Terminal
# 绝对路径 → 直接使用(适配定制安装或便携版)
timeout_per_test: 600
# MT5 路径说明:
# 这部分会被 GUI 接管(启动时从 optimizer/mt5_state.json 读取;失焦时写回 mt5_state.json)。
# 留空也没事,GUI 自己会用上次保存的值。
mt5_settings:
terminal_path: "" # 留空=自动检测; 或填 "C:\\Program Files\\MetaTrader 5 EXNESS\\terminal64.exe"
data_dir: "" # 留空=自动检测; 或填 "%APPDATA%\\MetaQuotes\\Terminal\\<hash>"
terminal_path: ""
data_dir: ""
ini_dir: "{PROJECT_ROOT}/config/generated"
reports_dir: "{PROJECT_ROOT}/reports"