HFT Arbitrage functions by comparing price data from a high-speed feed against a slower broker execution environment to identify price lags. When a significant price gap is detected, the system attempts to execute trades to capture the discrepancy. It utilizes a socket library to communicate data between terminals with millisecond precision. Risk management features include fixed lot sizing, stop loss, take profit, and slippage controls. The README notes it is specifically designed to use Darwinex as the fast feed source.
Latency arbitrage between fast and slow data feeds
Socket-based communication for millisecond price comparison
Read from Slow.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
____________________SettingServer
string
Setting Server
ID
string
Slow Breker Tesla
Resiver_Port
ushort
45
Server port
____________________SettingCalculation
string
Setting Calculation
Digits_Symbol
int
3
GapAllow
int
10
Gap Allow For Trading Profit + Spread
GapMultipe
int
-1
GapMultipe 1 OR -1
Count1
int
500
Count For Gaps>...Pips
Count2
int
1000
Count For Gaps>...Pips
Count3
int
1500
Count For Gaps>...Pips
Count4
int
2000
Count For Gaps>...Pips
Count5
int
2500
Count For Gaps>...Pips
Show all 19 inputs
Name
Type
Default
Description
____________________SettingTradeing
string
Setting Trading
OrderTypeRun
int
0
Slippage / Fill or Kill = 0/1
Slippage
int
100
TP
int
100
SL
int
100
Lots
double
1.0
Sleep_
int
60000
Sleep For Exit All
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone the-SantosLab/HFT-Arbitrage from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
3Copy the filesCopy the .mq4 / .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
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 high-frequency trading robot implements latency arbitrage by comparing price feeds across two separate MetaTrader terminals. It requires a fast data source to serve as a reference and a slower broker where price delivery lags behind the market. The EA communicates between instances via a socket library to detect p
This MetaTrader 4 expert advisor facilitates automated trading based on asset correlations across various markets. It identifies opportunities within a predefined list of symbols, including forex pairs, cryptocurrencies, gold, and equity indices. The EA manages entries based on the relationship between these instrument
This MetaTrader 5 expert advisor implements a triangular arbitrage strategy targeting price discrepancies between BTC/USD, ETH/USD, and BTC/ETH. It monitors both forward and reverse conversion paths to execute trades when a theoretical profit threshold is met. The EA features risk management tools including minimum pro
HFT Arbitrage EA is a latency arbitrage system designed for MetaTrader 4 and MetaTrader 5. It operates by comparing price feeds between a fast data source and a slower broker terminal to exploit execution lags. The system utilizes a socket library for real-time communication between server and client components. Risk m
This expert advisor facilitates arbitrage trading between futures and spot instruments, primarily targeting gold and stock indices. Available for MetaTrader 4 and 5, it monitors the price difference between two related symbols against a moving average to identify trade opportunities. The logic includes a noise-filterin
This MetaTrader 4 expert advisor implements a pairs trading or statistical arbitrage strategy primarily designed for energy commodities like USOIL and UKOIL. It monitors the price differential between two correlated assets over a specific lookback period to identify mean-reversion opportunities. The robot executes simu