Trading robot · MT4 · MT5

Gold Futures Spot Arbitrage

by HeYuansong

This expert advisor facilitates arbitrage trading between futures and spot instruments, primarily targeting gold and stock indices.

High risk

GitHub stars3
Forks2
Last update3 years ago19 Oct 2022
LicenceNone stated

Overview

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-filtering buffer and a trailing stop for trade management. Some versions within the collection incorporate grid-based entry and hedging strategies. It features an optional compounding system that increases lot sizes based on account balance milestones. The repository documentation is minimal.

Details

Author

HeYuansong on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Strategy

Arbitrage, Mean reversion, Grid, Hedging

Markets

Gold, Indices, Oil & commodities

Timeframes

M15-H1

Risk profile

  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once

Input parameters

Read from 期货动量.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
futuresstringGOLD_DEC21期货符号
cashstringGOLD现货符号
circleint240开平点均线周期
timerint1判断条件的时间间隔
spreaddouble0.5开平点的价差
bffint5缓冲区数量,这是最近若干个timer的均值
mylotsdouble0.01输?
input_stateint0输?
showint0抬头显示数据
outdouble0.3出仓点位
cibooltrue复利
addlotsint30盈利加仓手数
Show all 14 inputs
NameTypeDefaultDescription
slpointdouble3.0追踪止损点位
i_countsint1输?

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone HeYuansong/gold-arbitrage from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
  3. 3Copy the filesCopy the .mq4 / .mq5 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

8 stars

High Frequency Grid EA is an automated trading robot for MetaTrader 5 that implements a mean-reversion strategy through a grid of pending orders. It places buy and sell stop orders at calculated distances, using dynamic spread monitoring to ensure execution only during favorable conditions. The EA includes a trailing s

MT5 Trading robot GridMean reversionScalping High risk

Icarus

by fraggli
7 stars

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

MT4 Trading robot GridMartingaleMean reversion High risk
Updated 4 years ago GPL-3.0 GitHub repository of Icarus

North East Way

by Yogurt-Peng
3 stars

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

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way

AW Full Recovery EA

by wongthep
2 stars

This MetaTrader 5 expert advisor functions as a grid-based recovery system that can operate independently or manage trades from external EAs via magic number filtering. It initiates entries using Bollinger Bands and RSI indicators, then manages drawdown through a recovery grid matrix. The system employs dynamic ATR-bas

MT5 Trading robot GridMartingaleHedging High risk
Updated 3 months ago None stated GitHub repository of AW Full Recovery EA

Advanced Grid Trading

by jepli-1225
2 stars

Advanced Grid Trading is a MetaTrader 5 expert advisor that manages a complex grid strategy across four configurable layers. It places stop and limit orders at fixed intervals, employing either fixed or geometric lot scaling for increased grid depth. Trade management includes a shared profit pool used to close losing p

MT5 Trading robot GridMartingaleMean reversion High risk
Updated 6 months ago None stated GitHub repository of Advanced Grid Trading
2 stars

This MetaTrader 5 expert advisor implements a multi-layered grid strategy that manages up to three independent grids simultaneously on a single instrument. It uses the Relative Strength Index (RSI) across different timeframes to determine the initial trade direction for each grid. The EA employs martingale lot scaling,

MT5 Trading robot GridMartingaleMean reversion High risk
Updated 2 years ago None stated GitHub repository of Springfield 3 Grids

More trading robots

Need a broker for MT4/MT5?

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

Compare brokers