1
0
Fourche 0
MQL5-Google-Onedrive/docs/Quick_Start_Automation.md
copilot-swe-agent[bot] e118b2ce34 Add comprehensive automation startup scripts for Windows, Linux, and WSL
- Python orchestrator with JSON config, logging, and monitoring
- Windows batch script for simple automation
- PowerShell script with scheduled task creation
- Linux/WSL shell script with systemd/cron support
- Detailed documentation and quick start guides
- Example custom script template
- Configuration file with MT5 paths
- Updated .gitignore for logs and temp files

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-06 04:21:36 +00:00

2,4 Kio

Quick Start - Automation Scripts

🚀 One-Command Startup

Windows

# PowerShell (Recommended)
cd C:\path\to\MQL5-Google-Onedrive
powershell -ExecutionPolicy Bypass -File scripts\startup.ps1

# Command Prompt
scripts\startup.bat

Linux/WSL

cd /path/to/MQL5-Google-Onedrive
./scripts/startup.sh

📋 Setup Auto-Start

Windows - Create Scheduled Task

cd C:\path\to\MQL5-Google-Onedrive
powershell -ExecutionPolicy Bypass -File scripts\startup.ps1 -CreateScheduledTask

Linux - Install Service

cd /path/to/MQL5-Google-Onedrive
./scripts/startup.sh --setup-systemd

📝 Common Commands

Test Without Starting (Dry Run)

# Windows
.\scripts\startup.ps1 -DryRun

# Python
python scripts/startup_orchestrator.py --dry-run

Monitor Running Processes

python scripts/startup_orchestrator.py --monitor 3600  # Monitor for 1 hour
python scripts/startup_orchestrator.py --monitor 0     # Monitor indefinitely

Create Config File

python scripts/startup_orchestrator.py --create-config

Use Custom Config

python scripts/startup_orchestrator.py --config path/to/config.json

🔧 Configuration

Edit config/startup_config.json to customize:

  • What programs to start
  • Startup order and delays
  • MT5 terminal path
  • Custom scripts

📂 File Structure

MQL5-Google-Onedrive/
├── scripts/
│   ├── startup.bat              # Windows batch script
│   ├── startup.ps1              # PowerShell script
│   ├── startup.sh               # Linux/WSL script
│   └── startup_orchestrator.py  # Python orchestrator
├── config/
│   └── startup_config.json      # Configuration
├── logs/
│   └── startup_*.log            # Log files
└── docs/
    └── Startup_Automation_Guide.md  # Full documentation

Troubleshooting

Python Not Found

Windows: Install from python.org
Linux: sudo apt install python3 python3-pip

MT5 Not Starting

  1. Check if MT5 is installed
  2. Verify path in config/startup_config.json
  3. Try starting MT5 manually first

Permission Errors

PowerShell: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Linux: chmod +x scripts/startup.sh

📚 Full Documentation

See Startup_Automation_Guide.md for complete details.