MetaTrader 4 Zmq Server enables a Python client to interact with the trading platform through a local server implementation on the MT4 terminal. The EA manages PUSH and PULL sockets to facilitate the exchange of trade commands and market data. Basic risk controls are included for lot sizing, slippage, and order limits, although the core strategy logic is intended to reside in the external client application.
Read from server.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
PROJECT_NAME
string
MetaTrader 4 ZMQ Server
ZEROMQ_PROTOCOL
string
tcp
HOSTNAME
string
*
IN_PORT
int
1111
OUT_PORT
int
2222
MILLISECOND_TIMER
int
1
t0
string
--- Trading Parameters ---
MagicNumber
int
123456
MaximumOrders
int
1
MaximumLotSize
double
0.01
Blocking
bool
false
Slippage
int
3
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone koswag/metatrader-4-bot 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 MetaTrader 4 expert advisor functions as a local trade copier, allowing users to replicate trades from one terminal to another. It operates by sharing a data file between a master and a slave instance on the same computer or filesystem. The slave EA manages order execution, including market, limit, and stop orders
DWX Connect is an open-source bridge that links external trading strategies written in Python, C#, or Java to MetaTrader 4 and 5. It functions as a server EA that facilitates communication via file-based messaging, allowing users to execute trades and subscribe to market data without coding in MQL. The EA manages trade
Telegram API Signal Bot is a notification utility for MetaTrader 4 designed to broadcast trading activity to external communication channels. The EA monitors the terminal for order events, including executions and partial closes, and transmits the details to a Telegram group or channel using the Telegram Bot API. It of
This expert advisor provides a communication layer between MetaTrader 4 and external software applications via the ZeroMQ protocol. It operates as a server that listens for remote commands to open, modify, or delete market and pending orders. The system features a request-response mechanism and a dedicated push server
This expert advisor functions as a data bridge for streaming real-time market information from MetaTrader 4 and 5 to external applications. It utilizes the ZeroMQ library to transmit price ticks and order book updates to a remote server. The tool is intended for developers building quantitative trading platforms or dat
Neo Trader is an order execution bridge that facilitates the transfer of trade data from TradingView to MetaTrader 4 and 5 terminals. Operating through a local socket server and a browser extension, it allows users to execute trades directly from TradingView position drawing tools. The expert advisor handles market and