This MetaTrader 4 expert advisor implements a pairs trading or statistical arbitrage strategy primarily designed for energy commodities like USOIL and UKOIL.
Take Profit Oil Arbitrage monitors the price differential between two correlated assets over a specific lookback period to identify mean-reversion opportunities. The robot executes simultaneous trades on both instruments when the spread deviates from the calculated average. Risk management is handled through user-defined stop loss and take profit parameters based on price spreads. The repository contains several iterations of the logic, though the documentation is minimal.
Statistical arbitrage between correlated energy assets
Configurable spread-based stop loss and take profit
Read from TakeProfit_2.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
input_bar_count
int
1440
行?
input_begin_bar_index
int
30
计算开始索引(最近半小时)
input_slip
int
2.0
滑点值
input_timer_settings
int
10
定时器设置(单位:秒)
input_sl
double
0.2
止损差价
input_tp
double
0.6
止盈差价
input_x
double
0.15
偏移价差
input_adjust
double
0.05
修正值
input_shares_m
double
0.1
主执行数量
input_shares_s
double
0.1
次执行数量
input_as_m
string
USOIL
主资产
input_as_s
string
UKOIL
次资产
Show all 13 inputs
Name
Type
Default
Description
input_order_prefix
string
aa
订单以及文件前缀
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone iceandfire1981/MT4_Project 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, 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 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
Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr
This MetaTrader 4 expert advisor implements a correlation-based hedging strategy between two instruments, typically UKOIL and USOIL. It monitors the price spread between the two assets, opening buy and sell positions simultaneously when the spread expands or narrows beyond defined thresholds. The EA manages exits based
This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive
This MetaTrader 4 expert advisor implements a cumulative profit strategy based on support and resistance levels. The system identifies potential trade entries by analyzing historical price extremes over a defined lookback period while excluding recent price action. It manages trade exits collectively, closing the entir
Arbitrage Expert is a MetaTrader 4 expert advisor that focuses on a zone recovery hedging strategy rather than traditional arbitrage. Based on the OGT Zone Recovery system, it manages trades by opening counter-positions within a defined price zone when an initial trade goes into drawdown. The system employs a lot multi