Files
mt5_python_ea_suite/run/start_all.bat
T
silencesdg cacca80e11 MT5代理服务:新增自动重连机制和开机自启脚本
- 所有API端点请求前自动检查MT5连接,断开时自动重连
- 新增start_all.bat开机自启脚本(MT5 + 代理服务)
- 新增setup_autostart.ps1注册Windows计划任务

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-14 13:51:35 +08:00

17 lines
408 B
Batchfile

@echo off
REM MT5 EA Suite 开机自启脚本
REM 1. 启动 MT5 终端
REM 2. 等待 MT5 初始化
REM 3. 启动代理服务
echo [%date% %time%] 启动 MT5 ...
start "" "E:\Program Files\MetaTrader 5\terminal64.exe"
echo [%date% %time%] 等待 MT5 初始化 (30秒) ...
timeout /t 30 /nobreak >nul
echo [%date% %time%] 启动代理服务 ...
cd /d "D:\projects\mt5_python_ea_suite"
python -m run.server