Trading robot · MT5

Martingale MT5

by AbraaoM

This MetaTrader 5 expert advisor executes trades based on the direction of the most recently closed candle, offering both trend-following and counter-trend modes.

High risk

GitHub stars1
Forks1
Last update6 years ago18 Feb 2020
LicenceNone stated

Overview

Its core logic utilizes a martingale lot scaling system, where position sizes are increased by a user-defined factor following a loss to recover previous deficits. The robot features built-in risk controls including a fixed stop loss, take profit, trailing stop, and breakeven functions. Users can also define maximum daily profit and loss targets in currency and set specific trading hours to restrict activity.

Details

Author

AbraaoM on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Martingale, Trend following

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast

EA files

Input parameters

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

NameTypeDefaultDescription
swapWaytradeWayw0Sentido da entrada
amountint1Tamanho do lote
tpAint100Take profit
slAint100Stop loss
swapTStrailingStopnTSAplicar trailing stop
swapBreakevenbreakevennBAplicar breakeven
swapMartingalemartingalenMAplicar martingale
swapAutoTradeautoTradenATPossibilitar entradas automáticas
martingaleFactordouble2Fator martingale (atentar ao ativo)
martingaleMaxRepeatint1Maximo de vezes que o martingale será executado
maxLossdouble1000Perda máxima em um dia em dinheiro
maxProfitdouble5000Ganho máximo do dia em dinheiro
Show all 14 inputs
NameTypeDefaultDescription
startTimedatetimeD'09:30:00'Horário de início
endTimedatetimeD'17:30:00'Horário de finalização

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone AbraaoM/Martingale 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

EA Scalper XAUUSD

by francomascareloai
236 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

AI Enhanced HFT

by Marco210210
20 stars

This MetaTrader 5 expert advisor combines technical indicators with machine learning forecasts to trade the Forex market. It uses a trend-following approach based on Exponential Moving Average crossovers, filtered by the Average Directional Index and volume confirmations. A unique feature is its integration with extern

MT5 Trading robot Trend followingIndicator crossoverAI / machine learning High risk
Updated 1 year ago None stated GitHub repository of AI Enhanced HFT

Smart Grid Martingale EA

by chenhengyi53-design
8 stars

This MetaTrader 5 expert advisor executes a grid trading strategy enhanced with martingale lot scaling. The system identifies market direction through multi-timeframe analysis using Exponential Moving Averages and the Average Directional Index. It features dynamic grid spacing that adjusts based on market volatility an

MT5 Trading robot GridMartingaleTrend following High risk
Updated 7 months ago None stated GitHub repository of Smart Grid Martingale EA

Simba Sniper EA

by oriokie
6 stars

This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity

MT5 Trading robot SMC / ICT / price actionScalpingTrend following High risk
Updated 8 months ago Custom licence GitHub repository of Simba Sniper EA

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