Trading robot · MT5

Triangular Arbitrage BTC ETH USD

by dinethlive

This MetaTrader 5 expert advisor implements a triangular arbitrage strategy targeting price discrepancies between BTC/USD, ETH/USD, and BTC/ETH.

GitHub stars10
Forks3
Last update10 months ago22 Nov 2025
LicenceNone stated

Overview

Triangular Arbitrage BTC ETH USD 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 profit requirements after spreads, slippage protection, and a maximum trade limit per period. It operates using a millisecond-based check interval for high-frequency monitoring and includes a visual panel for real-time status updates. The README notes that users must manually verify symbol naming conventions.

Details

Author

dinethlive on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Arbitrage

Markets

Crypto

Timeframes

M1-M5

Risk profile

  • Trades without a fixed stop loss

Topics

crypto-botexpert-advisormetatrader-5metatrader5triangular-arbitragetriangular-arbitrage-bot

Input parameters

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

NameTypeDefaultDescription
InpSymbol1stringBTCUSDSymbol 1: BTC/USD
InpSymbol2stringETHUSDSymbol 2: ETH/USD
InpSymbol3stringBTCETHSymbol 3: BTC/ETH
InpMinProfitPercentdouble0.5Minimum Profit % (after spreads)
InpMaxSlippagePercentdouble2.0Maximum Slippage % Allowed
InpLotSizedouble0.01Lot Size per Trade
InpUsePercentLotboolfalseUse % of Balance for Lot Size
InpRiskPercentdouble1.0Risk % of Balance (if enabled)
InpMagicNumberint789456Magic Number
InpSlippagePointsint50Slippage (points)
InpCheckIntervalMsint500Check Interval (milliseconds)
InpEnableTradingbooltrueEnable Live Trading
Show all 22 inputs
NameTypeDefaultDescription
InpCloseOnOppositebooltrueClose Opposite Positions
InpShowPanelbooltrueShow Information Panel
InpPanelXint20Panel X Position
InpPanelYint30Panel Y Position
InpPanelColorcolorclrDarkSlateGrayPanel Background Color
InpTextColorcolorclrWhiteText Color
InpLogDetailsbooltrueLog Detailed Information
InpMaxTradesPerPeriodint200Maximum Trades Per Period
InpMinLiquiditydouble0.0Minimum Order Book Depth (0=disable)
InpResetTimeframeENUM_TIMEFRAMESPERIOD_M1Trade Counter Reset Timeframe

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone dinethlive/Triangular-Arbitrage-EA-for-BTC-ETH-USD from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .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

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

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

Triangular Arbitrage MT5

by chrisyeh75
1 stars

This MetaTrader 5 expert advisor implements a triangular arbitrage strategy targeting price discrepancies between correlated currency pairs. The robot monitors specific instruments, including EURUSD, USDJPY, EURJPY, USDCAD, and CADJPY, to identify synthetic price gaps. It executes trades when the calculated gap exceeds

MT5 Trading robot ArbitrageHedging
Updated 9 years ago None stated GitHub repository of Triangular Arbitrage MT5

FX TrEx

by PavelZatyaev
1 stars

This MetaTrader 5 expert advisor implements a multi-currency trading strategy based on a coefficient matrix of major forex pairs. It monitors price movements across a predefined set of currencies, including EUR, USD, GBP, AUD, JPY, and CAD, to identify trading opportunities. The system manages trades as a collective ba

MT5 Trading robot Arbitrage
Updated 8 years ago None stated GitHub repository of FX TrEx
1 stars

This MetaTrader 5 expert advisor implements a pair trading arbitrage strategy between spot gold and gold futures. The robot monitors the price difference between XAUUSD and the GC futures contract, opening simultaneous buy and sell orders when the spread exceeds a defined threshold. Risk management is handled through a

MT5 Trading robot ArbitrageHedging
Updated 6 months ago None stated GitHub repository of XAU And GC Arbitrage

More trading robots

Need a broker for MT5?

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

Compare brokers