Trading robot · MT4

Oil Spread Arbitrage

by leiyunfei

This MetaTrader 4 expert advisor implements a spread trading strategy between two correlated commodities, specifically targeting USOIL and UKOIL.

GitHub stars1
Forks0
Last update7 years ago12 Oct 2018
LicenceNone stated

Overview

Oil Spread Arbitrage utilizes timer-based logic to monitor price differences at set intervals rather than relying on standard chart candles. The robot enters trades based on volatility thresholds and manages them using fixed stop loss and take profit parameters. It features a unique exit mechanism that closes orders after a designated number of timer cycles. The repository lacks a functional README.

Details

Author

leiyunfei on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Arbitrage

Markets

Oil & commodities

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input parameters

Read from TakeProfit.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
input_time_scheduleint10定时器(单位:秒)
input_point_diffint5波动值
input_take_profitint20止盈(用于计算,大于市场的时候作为止盈)
input_stop_lossint60止损(用于计算,大于市场的时候作为止损)
input_slipint1滑点
input_shares_numdouble0.1执行数量
input_sa_1stringUSOIL资产1
input_sa_2stringUKOIL资产2
input_close_order_timeint6持仓时间(单位:次)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone leiyunfei/MT4 from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 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.

Similar expert advisors

HFT Arbitrage EA

by HFTHaidra
132 stars

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

MT4MT5 Trading robot Arbitrage
Updated 9 months ago None stated GitHub repository of HFT Arbitrage EA

CARA Correlation EA

by jblanked
13 stars

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

MT4 Trading robot ArbitrageMulti-strategy
Updated 2 years ago None stated GitHub repository of CARA Correlation EA

HFT Arbitrage EA

by techteam92
7 stars

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

MT4MT5 Trading robot Arbitrage
Updated 1 year ago None stated GitHub repository of HFT Arbitrage EA
3 stars

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

MT4MT5 Trading robot ArbitrageMean reversionGrid High risk
Updated 3 years ago None stated GitHub repository of Gold Futures Spot Arbitrage

Take Profit Oil Arbitrage

by iceandfire1981
1 stars

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

MT4 Trading robot ArbitrageMean reversionHedging
Updated 7 years ago None stated GitHub repository of Take Profit Oil Arbitrage

Arbitrage Algo

by baufometic
1 stars

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

MT4 Trading robot ArbitrageScalping
Updated 4 years ago None stated GitHub repository of Arbitrage Algo

More trading robots

Need a broker for MT4?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers