MQL5-Google-Onedrive/scripts
google-labs-jules[bot] cb6b175fbf Bolt: optimize web dashboard performance
This commit introduces several performance optimizations to the Flask web dashboard:

1.  Consolidated file metadata checks in `MarkdownCache` using `os.stat()`. This reduces the number of system calls per request by retrieving both file existence and modification time in a single operation.
2.  Extracted the large HTML template into a module-level constant `DASHBOARD_TEMPLATE`. This eliminates redundant memory allocations and string concatenations within the request lifecycle.
3.  Pre-defined markdown file paths as constants to avoid repeated `os.path.join()` calls.
4.  Simplified `render_template_string` calls by hardcoding static values (like the footer year).

These changes reduce CPU overhead and latency for both the main dashboard and the health check endpoint. Verified via integration tests and Playwright screenshots.
2026-02-12 17:32:42 +00:00
..
analyze_pr_optimizations.py Parallelize PR analysis in analyze_pr_optimizations.py 2026-01-18 19:07:52 +00:00
check_ea_status.ps1 Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00
ci_validate_repo.py Add executable permissions to scripts and create verification document 2026-01-06 20:41:06 +00:00
cleanup.ps1 Cleanup and setup for account 411534497 2026-01-19 07:45:55 +07:00
cleanup_accounts.ps1 Cleanup and setup for account 411534497 2026-01-19 07:45:55 +07:00
cleanup_guide.md Cleanup and setup for account 411534497 2026-01-19 07:45:55 +07:00
cleanup_mql5_folder.ps1 Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00
cleanup_mt5_terminal.ps1 Cleanup and setup for account 411534497 2026-01-19 07:45:55 +07:00
deploy_cloud.py Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
deploy_cloud_simple.ps1 Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00
deploy_dashboard.ps1 Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
deploy_exness.ps1 Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
deploy_exness_live.ps1 Cleanup and setup for account 411534497 2026-01-19 07:45:55 +07:00
deploy_mt5.sh Add executable permissions to scripts and create verification document 2026-01-06 20:41:06 +00:00
example_custom_script.py Add comprehensive automation startup scripts for Windows, Linux, and WSL 2026-01-06 04:21:36 +00:00
jules_deploy.ps1 Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00
jules_execute.py fix: Improve Jules execution script error handling 2026-01-10 05:06:32 +07:00
load_vault.ps1 Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
load_vault.py Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
merge_best_prs.py docs: Add PR consolidation results - Documented merged PRs (#76, #75) - Listed 13 closed duplicate PRs - Created summary of consolidation results - Reduced open PRs from 23 to ~10 2026-01-10 06:00:48 +07:00
package_mt5.sh Add executable permissions to scripts and create verification document 2026-01-06 20:41:06 +00:00
pin_prs_issue.md docs: Add PR tracking issue template 2026-01-10 05:27:51 +07:00
README.md Add scripts directory README with usage guide 2026-01-06 04:29:14 +00:00
requirements_bot.txt Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
review_pull_requests.py feat: Add pull request review script and comprehensive report - Created review_pull_requests.py to analyze all PRs - Generated Pull Request Review Report with 23 open PRs analysis - Identified 20 performance optimization PRs ready for review - Documented 5 draft PRs and 2 WIP feature PRs - Added recommendations for PR consolidation and prioritization 2026-01-10 05:26:35 +07:00
review_working_trees.py feat: Add working tree review script and report - Created review_working_trees.py for comprehensive branch/stash/worktree analysis - Added Working Tree Review Report documentation - Analyzed 81 remote branches (25 merged, 55 unmerged) - Fixed Unicode encoding issues in git command execution 2026-01-10 05:13:04 +07:00
setup_github_secrets.ps1 Add GitHub CI/CD workflows for Docker dev deployment with automation 2026-01-19 10:03:04 +07:00
start_bot.ps1 Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
start_dev_container.ps1 Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00
startup.bat Add comprehensive automation startup scripts for Windows, Linux, and WSL 2026-01-06 04:21:36 +00:00
startup.ps1 Update configuration for Exness MT5 and improve startup automation - Updated to use MetaTrader 5 EXNESS path - Added intelligent MT5 detection with fallback logic - Fixed Windows compatibility issues - Processes now run independently 2026-01-10 04:30:24 +07:00
startup.sh Address code review feedback 2026-01-06 04:28:13 +00:00
startup_orchestrator.py feat: Implement automatic retry logic for failed components - Added retry mechanism using max_startup_retries config setting - Components now retry up to configured number of attempts - Improved error handling and logging for retry attempts - Updated documentation to reflect new feature 2026-01-10 04:36:53 +07:00
sync_github_pages.py feat: Add Mouy-leng request processing system - Improved custom issue template with request types - Created GitHub Pages sync workflow for automated syncing - Added sync_github_pages.py script for manual syncing - Created Mouy-leng Request Processing Guide documentation 2026-01-10 04:41:34 +07:00
TELEGRAM_BOT_SETUP.md Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
telegram_deploy_bot.py Add Telegram deployment bot, web dashboard, and deployment automation 2026-01-19 06:08:25 +07:00
test_automation.py Parallelize test execution in test_automation.py 2026-01-18 19:24:02 +00:00
web_dashboard.py Bolt: optimize web dashboard performance 2026-02-12 17:32:42 +00:00

Scripts Directory

This directory contains automation scripts for the MQL5 trading system.

Automation Scripts

Startup Scripts (Choose one based on your platform)

  • startup.bat - Windows batch script for simple automation
  • startup.ps1 - PowerShell script with advanced features (recommended for Windows)
  • startup.sh - Bash script for Linux/WSL
  • startup_orchestrator.py - Python orchestrator (cross-platform)

Helper Scripts

  • example_custom_script.py - Template for creating your own custom scripts
  • test_automation.py - Integration tests for all automation scripts

Deployment Scripts

  • ci_validate_repo.py - Repository validation (used by CI)
  • deploy_mt5.sh - Deploy MQL5 files to MT5 data folder
  • package_mt5.sh - Create distribution package

Quick Start

Windows Users

# Run once
.\startup.ps1

# Setup auto-start on boot
.\startup.ps1 -CreateScheduledTask

# Test without executing
.\startup.ps1 -DryRun

Linux/WSL Users

# Run once
./startup.sh

# Setup auto-start on boot (systemd)
./startup.sh --setup-systemd

# Setup auto-start on boot (cron)
./startup.sh --setup-cron

Python Orchestrator (All Platforms)

# Create default configuration
python startup_orchestrator.py --create-config

# Run with default config
python startup_orchestrator.py

# Run with monitoring
python startup_orchestrator.py --monitor 3600

# Dry run
python startup_orchestrator.py --dry-run

Testing

Run the integration tests:

python test_automation.py

Configuration

Edit ../config/startup_config.json to customize:

  • What programs to start
  • Startup order and delays
  • Platform-specific settings
  • MT5 terminal path

Documentation

Full documentation available in ../docs/:

  • Startup_Automation_Guide.md - Complete guide
  • Quick_Start_Automation.md - Quick reference
  • Windows_Task_Scheduler_Setup.md - Windows setup details

Support