mirror of
https://github.com/silencesdg/mt5_python_ea_suite.git
synced 2026-07-28 03:07:48 +00:00
cacca80e11
- 所有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>
17 lines
408 B
Batchfile
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
|
|
|