mirror of
https://github.com/silencesdg/mt5_python_ea_suite.git
synced 2026-08-06 07:27:54 +00:00
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>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
@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
|
||||
|
||||
Reference in New Issue
Block a user