This MetaTrader 4 expert advisor acts as a bridge for the Model Context Protocol (MCP), enabling remote interaction between the trading platform and external environments such as Claude Code.
Metatrader 4 MCP provides real-time account data, market prices, and order management capabilities via an HTTP bridge and file-based reporting. The system allows users to place trades, manage positions, and monitor backtests remotely through a Node.js server. While the repository includes breakout strategy templates for development, the core functionality focuses on cross-platform communication, remote EA compilation, and comprehensive status tracking.
Read from MCP_Ultimate.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
UpdateInterval
int
1000
Update interval in milliseconds
EnableFileReporting
bool
true
Enable enhanced file-based reporting
EnableBacktestTracking
bool
true
Enable backtest status tracking
EnableVisualMode
bool
true
Show MCP status on chart
EnableDebugMode
bool
false
Enable debug logging
ReportsFolder
string
mt4_reports
Reports folder name
SaveDetailedLogs
bool
true
Save detailed operation logs
EnableJSONFormat
bool
true
Use JSON format for reports
MaxLogFiles
int
10
Maximum log files to keep
TrackMajorPairs
bool
true
Track major currency pairs
TrackMinorPairs
bool
false
Track minor currency pairs
TrackExoticPairs
bool
false
Track exotic currency pairs
Show all 13 inputs
Name
Type
Default
Description
TrackCommodities
bool
false
Track commodities (XAUUSD, XAGUSD, WTIUSD)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone 8nite/metatrader-4-mcp from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This repository features a collection of trading tools for MetaTrader 5 and 4, headlined by a comprehensive Trade Manager EA. This manager enables manual execution via keyboard shortcuts and provides automated risk controls, including ATR-based break-even settings and trailing stops. The collection also offers strategy
This collection for MetaTrader 4 provides a variety of expert advisors and utilities intended for automated trading and educational use. The primary component is a moving average crossover robot that opens positions based on trend direction. It features risk management tools including percentage-based stop losses, take
This repository provides a diverse library of expert advisors and technical indicators for MetaTrader 4. The collection includes robots utilizing moving average crossovers, MACD trend-following signals, and mean-reversion strategies based on Bollinger Bands. A notable inclusion is a Martingale robot that scales lot siz
This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri
LIVMOR is a MetaTrader 4 expert advisor found within this repository of over fifty automated trading tools. It utilizes technical indicators such as MACD, Stochastic, and moving averages to identify entry points, while also offering manual price entry options. The EA manages risk through user-defined stop loss and take
This repository contains a diverse collection of MetaTrader 4 expert advisors and R-based financial scripts. The primary robot is based on the Nanningbob trading system, which utilizes multi-timeframe analysis across daily and four-hour charts to identify trends and ranging markets. It employs Bollinger Bands for mean-