Collection · MT4 · MT5

Expert Advisors Collection

by johnsmith-mql

This repository provides a collection of standard template expert advisors for both MetaTrader 4 and MetaTrader 5.

GitHub stars1
Forks0
Last update4 years ago20 Feb 2022
LicenceNone stated

Overview

Expert Advisors Collection includes the classic MACD Sample and Moving Average robots, which demonstrate indicator-based trading logic. The MACD Sample enters positions based on MACD signal levels filtered by a moving average trend. Risk management features include fixed lot sizing, hard take profit targets, and a trailing stop functionality to protect gains. The repository serves as a basic technical reference with minimal external documentation.

Details

Author

johnsmith-mql on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Strategy

Indicator crossover, Trend following

Markets

Any symbol

Timeframes

M15-H1, H4 and above

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 MACD Sample.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpLotsdouble0.1Lots
InpTakeProfitint50Take Profit (in pips)
InpTrailingStopint30Trailing Stop Level (in pips)
InpMACDOpenLevelint3MACD open level (in pips)
InpMACDCloseLevelint2MACD close level (in pips)
InpMATrendPeriodint26MA trend period

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone johnsmith-mql/expert-advisors 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

161 stars

This collection for MetaTrader 4 provides a variety of expert advisors and utilities intended for automated trading and educational use. The primary component is a moving average crossover robot that opens positions based on trend direction. It features risk management tools including percentage-based stop losses, take

MT4 Collection Indicator crossoverMartingaleGrid High risk

EA MQL4 Collection

by Yumerain
151 stars

This repository provides a diverse library of expert advisors and technical indicators for MetaTrader 4. The collection includes robots utilizing moving average crossovers, MACD trend-following signals, and mean-reversion strategies based on Bollinger Bands. A notable inclusion is a Martingale robot that scales lot siz

MT4 Collection Indicator crossoverTrend followingMartingale High risk
Updated 6 years ago None stated GitHub repository of EA MQL4 Collection
140 stars

This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti

MT5 Collection Indicator crossoverMean reversionTrend following
Updated 3 years ago None stated GitHub repository of Kecoma Trading Collection
135 stars

This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri

MT4MT5 Collection Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of Nkanven EA Collection
101 stars

This collection for MetaTrader 5 provides a library and several expert advisors optimized for Renko chart trading. It includes a primary automated robot that executes trades based on Renko bar signals, as well as specific examples for moving average and price crossovers. The included tools offer robust trade management

MT5 Collection Trend followingIndicator crossoverBreakout

Sclab MQL5 Collection

by guilhermetabordaribas
75 stars

This MetaTrader 5 expert advisor collection provides a modular approach to automated trading based on technical indicators. It features a trading robot that uses a moving average to identify entries, supported by risk management tools including hard stop losses and take profits. The system includes logic for break-even

MT5 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Sclab MQL5 Collection

More collections

Need a broker for MT4/MT5?

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

Compare brokers