Framework & template · MT5

Pro Forex MQL5 Template

by mxjoly

This MetaTrader 5 expert advisor provides a foundation for automated trading using a multi-timeframe framework.

GitHub stars1
Forks1
Last update4 years ago14 Feb 2022
LicenceNone stated

Overview

Pro Forex MQL5 Template utilizes the Average True Range (ATR) indicator to determine dynamic stop loss levels and calculates take profit targets based on a predefined risk-to-reward ratio. The system includes built-in risk controls such as automatic lot sizing based on account balance, a maximum spread threshold, and a daily trade counter. While the repository lacks documentation, the code handles price data across different periods and includes basic trend indicator libraries.

Details

Author

mxjoly on GitHub

Type

Framework & template

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following

Markets

Any symbol

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.

EA files

Input parameters

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

NameTypeDefaultDescription
risk_balancedouble2The risk for each trade
max_spread_alloweddouble2Maximum spread in pips above which the robot does not trade.
number_trades_per_dayint1Number of trades per day
magic_numberlong55555Magic number
use_auto_lotsbooltrueCalculate position size automatically
stop_loss_atrint3The stop loss atr ratio
risk_rewardint2The risk reward ratio

How to install it

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

16 stars

This framework provides MQL5 header files and example expert advisors designed to trade on non-time-based Range Bar charts within MetaTrader 5. It includes template robots for moving average crossovers and Super Trend strategies. The included code manages trade execution with configurable stop loss, take profit, break-

MT5 Framework & template Indicator crossoverTrend following

Orchard Simple EA Template

by OrchardForexTutorials
13 stars

This collection provides educational templates for building MetaTrader 5 Expert Advisors. It includes demonstration robots that interface with indicators like MACD and Parabolic SAR using the iCustom function. The repository serves as a learning resource for structuring MQL5 code and handling trade execution. Each exam

MT5 Framework & template Indicator crossoverTrend following

New Robot

by andreolvgomes
10 stars

This MetaTrader 5 framework provides a modular structure for developing and deploying automated strategies, specifically optimized for the Mini Índice Bovespa. It includes an example implementation of the Dunnigan setup, utilizing candle sequences and price levels for entries. The system manages trades with advanced co

MT5 Framework & template BreakoutTrend following
Updated 5 years ago None stated GitHub repository of New Robot

MT5 Quant Lib

by xMattC
7 stars

MT5 Quant Lib is an MQL5 development framework and an included trend-following Expert Advisor for MetaTrader 5. It provides a modular infrastructure for trade execution, multi-symbol management, and risk control. The included strategy enters trades based on RSI triggers and CCI trend confirmation, utilizing trendline a

MT5 Framework & template Trend following
Updated 4 months ago None stated GitHub repository of MT5 Quant Lib

Hedge Terminal

by SokolovVasiliy
3 stars

Hedge Terminal is a specialized framework for MetaTrader 5 designed to facilitate hedging net positions and provide a structured API for managing expert advisors. The repository includes demonstration robots such as a moving average expert that operates across multiple timeframes. These examples show how to open trades

MT5 Framework & template Indicator crossoverTrend followingHedging
Updated 6 years ago None stated GitHub repository of Hedge Terminal
2 stars

This MetaTrader 5 expert advisor acts as a modular architectural blueprint for developing complex algorithmic trading systems. It demonstrates a structured framework for separating user interface components, input configurations, and core execution logic into maintainable layers. While the repository provides placehold

MT5 Framework & template Trend followingGridHedging

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