MetaTrader 4/5 Skill for K.I.T.

Execute MetaTrader 4/5 orders, retrieve market data, and test strategies.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/datagridSolution/forex-trading-ai-agent --skill metatrader-4-5-skill-for-k-i-t-datagridsolution
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: MetaTrader 4/5 Skill for K.I.T.
Source: https://github.com/datagridSolution/forex-trading-ai-agent/tree/main/skills/metatrader
Command: npx skills add https://github.com/datagridSolution/forex-trading-ai-agent --skill metatrader-4-5-skill-for-k-i-t-datagridsolution

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires MetaTrader5, pandas, numpy, pytz, requests, flask, psutil, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of manually connecting to MetaTrader 4/5, placing trades, inspecting positions, and running analysis by providing a unified integration layer for K.I.T.

Core Features & Use Cases

  • Core Trading & Position Management: Execute market and pending orders (limit/stop), manage SL/TP, and close positions.
    • Use case: Place an EURUSD market order with SL/TP, then quickly verify open positions and performance.
  • Market Data Access: Retrieve ticks, historical OHLCV candles, symbol metadata, and spread.
    • Use case: Fetch recent H1 candles and current tick to support strategy decisions.
  • Strategy Testing & Optimization: Backtest strategies (including walk-forward and Monte Carlo-style distribution analysis) to evaluate robustness.
    • Use case: Backtest a moving-average crossover strategy on EURUSD for the last 6–12 months and compare parameter settings.
  • Multi-Account & Copy Trading: Configure multiple accounts and execute orders across enabled accounts with multipliers.
    • Use case: Mirror trades from a master account to conservative/aggressive follower accounts using different risk/volume multipliers.
  • Signal Provider & EA Bridge: Create and broadcast trading signals via Telegram/Discord/webhooks and bridge Python ↔ MQL5 Expert Advisors using file-based messaging.
    • Use case: Generate a signal and broadcast it to subscribed channels, or forward instructions to an MQL5 EA receiver.
  • 24/7 VPS Deployment & Recovery: Monitor MT5 health, watch connections, auto-restart on failures, and send alerts.
    • Use case: Run continuous monitoring with Telegram/webhook alerts for downtime or abnormal resource usage.

Quick Start

Tell K.I.T. to connect to your already-running MT5 terminal (no credentials required), then request a demo EURUSD market trade using the SL/TP values you provide.

Frequently Asked Questions about MetaTrader 4/5 Skill for K.I.T.

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

FAQPage Schema
How do I execute algorithmic trading and backtesting with MetaTrader 4/5?▼

Algorithmic trading and backtesting with MetaTrader 4/5 are enabled through a Python integration layer that retrieves market data, executes orders, and runs strategy evaluations. It requires the Python MetaTrader5 runtime on the same machine as the MT5 terminal.

Can I mirror trades across multiple MetaTrader accounts for copy trading?▼

Yes, copy trading across multiple MetaTrader accounts is supported by configuring enabled accounts and executing orders with different risk and volume multipliers. This allows mirroring trades from a master account to conservative or aggressive follower accounts.

Does the MetaTrader integration support broadcasting trading signals to Discord and Telegram?▼

Yes, broadcasting trading signals to Discord, Telegram, and webhooks is supported. The integration can generate signals and send them to subscribed channels, and it also bridges Python to MQL5 Expert Advisors using file-based messaging.

What is the best way to monitor MetaTrader 5 health on a VPS 24/7?▼

24/7 VPS health monitoring for MetaTrader 5 is handled by watching terminal connections, auto-restarting on failures, and sending alerts for downtime or abnormal resource usage via Telegram or webhooks. This ensures continuous deployment and recovery.

Do I need to provide my credentials to connect to a running MT5 terminal?▼

No credentials are required to connect to an already-running MT5 terminal. You simply tell the system to connect to the active terminal and then request demo market trades using your specified stop loss and take profit values.

What kind of market data can I retrieve from MetaTrader for strategy decisions?▼

Market data retrieval from MetaTrader includes current ticks, historical OHLCV candles, symbol metadata, and spread information. Fetching recent H1 candles alongside current ticks directly supports and informs strategy decisions.