mt5-backtest

Automate MetaTrader 5 Expert Advisor builds, backtests, and versioning on macOS.

1|2|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/anhnguyen123312/skill-trader --skill mt5-backtest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mt5-backtest
Source: https://github.com/anhnguyen123312/skill-trader/tree/main/.claude/skills/mt5-backtest
Command: npx skills add https://github.com/anhnguyen123312/skill-trader --skill mt5-backtest

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires MetaTrader 5, Wine64, iconv, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

The mt5-backtest Skill addresses the challenge of building, backtesting, and analyzing Expert Advisors (EAs) for MetaTrader 5 on macOS, streamlining the entire process and allowing for efficient strategy evaluation.

Core Features & Use Cases

  • Automated Build and Backtest: Automates the compilation of EA source code from .mq5 to .ex5 and runs backtests with real tick data.
  • Versioning Workflow: Implements versioning for EA code, tracking changes and history with Git.
  • Broker Login: Handles broker credential management and MT5 authentication.
  • Interactive and CLI Modes: Supports both interactive command-line interactions and automated pipeline execution via scripts.

Quick Start

Run the interactive backtest script:

./.skill-trader/backtest/scripts/backtest.sh

Frequently Asked Questions about mt5-backtest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backtest MetaTrader 5 Expert Advisors on macOS?

To backtest MetaTrader 5 Expert Advisors on macOS, you automate source code compilation from .mq5 to .ex5 and execute backtests using real tick data. This requires MetaTrader 5, Wine64, and iconv to run efficiently.

Can I compile and build MQL5 source code directly in a macOS environment?

Yes, you can compile MQL5 source code on macOS. The workflow automates EA source code compilation from .mq5 to .ex5 executable files using Wine64 and iconv to facilitate the build process natively on your system.

Does the MetaTrader 5 backtesting workflow support Git version control for trading algorithms?

Yes, the MetaTrader 5 backtesting workflow supports Git version control for trading algorithms. It implements EA code versioning to track source changes and maintain development history throughout the build process.

What dependencies do I need to run an automated MT5 backtest pipeline on macOS?

To run an automated MT5 backtest pipeline on macOS, you need MetaTrader 5, Wine64, and iconv. These dependencies enable terminal authentication, MQL5 source compilation, and tick data analysis.

How do I handle broker login and authentication for MetaTrader 5 on macOS?

You handle broker login and authentication for MetaTrader 5 on macOS using integrated credential management. The workflow secures broker credentials and manages MT5 authentication to enable automated backtest execution.

Can I run MetaTrader 5 backtests using command-line scripts instead of interactive mode?

Yes, you can run MetaTrader 5 backtests using command-line scripts. The workflow supports automated pipeline execution via scripts alongside interactive command-line interactions for continuous backtesting.