Framework & template · MT5

Multipair EA Template

by drdz9876

This MetaTrader 5 expert advisor serves as a template for multi-pair trading systems using a dual Moving Average crossover strategy.

High risk

GitHub stars1
Forks1
Last update2 years ago29 Oct 2023
LicenceGPL-3.0

Overview

Multipair EA Template is designed to execute trades across multiple symbols from a single chart based on a user-defined list of currency pairs. The EA includes risk management tools such as a trailing stop, fixed take profit, and stop loss. It also features an optional martingale lot scaling system that increases position sizes after losses and layers orders at a minimum distance. The code is intended for educational purposes and framework development.

Details

Author

drdz9876 on GitHub

Type

Framework & template

Platform

MetaTrader 5 (MQL5)

Strategy

Indicator crossover, Martingale, Multi-strategy, Grid

Markets

Forex

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend

Input parameters

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

NameTypeDefaultDescription
EnableMartinbooltrueEnable Martingale
SLTypeSLModeOwnSLSL Type
maxOrdersint4Max Orders
Multiplierdouble1.5Lot Multiplier
minDistdouble20Distance
Lotdouble0.01Starting Lot
StopLossint95Stoploss
TakeProfitint95TakeProfit
EnableTrailbooltrueEnable Trail
TrailingStopint33Trailing Stop
TrailingStepint10Trailing Step
Magicint1Magic Number
Show all 16 inputs
NameTypeDefaultDescription
CommentarystringMultipair EA TemplateEA Comment
Slippageint10Tolerated slippage in brokers' pips
TradeMultipairboolfalseTrade Multipair
PairsToTradestringEURUSD,GBPUSD,USDCHFPair to Trade

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone drdz9876/Multipair-EA-Template-MT5 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

RiskGuard Pro

by farhadiamirali403-lab
1 stars

RiskGuard Pro is a multi-strategy expert advisor for MetaTrader 5 that combines automated trade execution with comprehensive risk management. It features a voting engine that aggregates signals from indicators like RSI, MACD, and Bollinger Bands. The EA supports various lot-sizing methods, including fixed lots and perc

MT5 Trading robot Multi-strategyGridMartingale High risk
Updated yesterday None stated GitHub repository of RiskGuard Pro

MQL5 Expert Advisors Collection

by AmonCheruiyotHQ
1 stars

This repository features a collection of MetaTrader 5 expert advisors, with a primary focus on a multi-currency ring trading system. The flagship EA executes trades across several currency pairs simultaneously, utilizing triangular hedging logic to manage exposure. It incorporates various lot management modes including

MT5 Collection Multi-strategyHedgingMartingale High risk
1 stars

This repository features a collection of expert advisors for MetaTrader 5, primarily focused on the Blessing 3 grid strategy. The system enters trades based on market conditions and manages them using a grid with martingale lot multipliers. Risk controls include maximum drawdown percentages, equity-based trading stops,

MT5 Collection GridMartingaleIndicator crossover High risk
109 stars

LIVMOR is a MetaTrader 4 expert advisor found within this repository of over fifty automated trading tools. It utilizes technical indicators such as MACD, Stochastic, and moving averages to identify entry points, while also offering manual price entry options. The EA manages risk through user-defined stop loss and take

MT4 Collection Indicator crossoverMartingaleGrid High risk
Updated 8 years ago None stated GitHub repository of LIVMOR Trading Collection
36 stars

This repository contains the MQL source code used by Forex Strategy Builder Professional to export automated trading strategies to MetaTrader 4 and MetaTrader 5. It serves as a standardized template for executing technical strategies generated by the software, handling order execution and trade management. The EA inclu

MT4MT5 Framework & template Multi-strategyMartingale High risk
Updated 4 years ago None stated GitHub repository of FSB Pro Expert Advisor

Mql Projects Collection

by PranavSonar
3 stars

This repository features a collection of MetaTrader 4 expert advisors, primarily focused on a multi-strategy system named Complete Robot. The main EA utilizes a combination of technical indicators including Moving Averages, MACD, Bollinger Bands, and Stochastic oscillators for market entry. It employs a grid-based appr

MT4 Collection GridMartingaleIndicator crossover High risk
Updated 8 years ago None stated GitHub repository of Mql Projects Collection

More frameworks and templates

Need a broker for MT5?

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

Compare brokers