Files
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

6 lines
589 B
PowerShell

$action = New-ScheduledTaskAction -Execute "D:\projects\mt5_python_ea_suite\run\start_all.bat" -WorkingDirectory "D:\projects\mt5_python_ea_suite\run"
$trigger = New-ScheduledTaskTrigger -AtLogon -User $env:USERNAME
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable -ExecutionTimeLimit (New-TimeSpan -Days 0)
Register-ScheduledTask -TaskName "MT5_EA_Suite_AutoStart" -Action $action -Trigger $trigger -Settings $settings -Description "MT5 + Proxy Server AutoStart" -Force
Write-Host "Done: MT5_EA_Suite_AutoStart registered"