EA Swap is a MetaTrader 4 expert advisor designed to capture interest rate differentials during the triple rollover period, typically occurring on Wednesdays.
EA Swap automates the process of opening a buy or sell position shortly before the swap is charged and closing it after the rollover is processed. The robot includes parameters for fixed lot sizes, an optional stop loss, and spread-based exit logic to manage costs. The developer notes that the strategy is primarily educational, as high spreads and market volatility during rollover hours can offset potential swap gains.
Read from swapEA.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
swapDay
daysOfWeek
wednesday
lots
double
0.1
SL
int
0
SL (in points). 0=No SL
swapHour
int
23
Swap is charged at 23:00h
CloseHour
int
1
Close 1h after 3x swap
CloseMinute
int
30
Close 30min after 3x swap
OpenHour
int
1
Open 1h before 3x swap
OpenMinute
int
30
Open 30min before 3x swap
operation
operations
buy
maxSpread
int
10
Close if spread <= (in points)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone pablogalve/EA_Swap 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 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
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
This MetaTrader 4 expert advisor implements a latency arbitrage strategy by monitoring price discrepancies across multiple ECN brokers and liquidity pools. It tracks bid and ask prices for twenty-three currency pairs in a high-speed loop, identifying instances where prices diverge significantly across different platfor