mirror of
https://github.com/silencesdg/mt5_python_ea_suite.git
synced 2026-07-29 11:47:44 +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>
6 lines
589 B
PowerShell
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"
|