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.
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.
Read from Martingale.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
swapWay
tradeWay
w0
Sentido da entrada
amount
int
1
Tamanho do lote
tpA
int
100
Take profit
slA
int
100
Stop loss
swapTS
trailingStop
nTS
Aplicar trailing stop
swapBreakeven
breakeven
nB
Aplicar breakeven
swapMartingale
martingale
nM
Aplicar martingale
swapAutoTrade
autoTrade
nAT
Possibilitar entradas automáticas
martingaleFactor
double
2
Fator martingale (atentar ao ativo)
martingaleMaxRepeat
int
1
Maximo de vezes que o martingale será executado
maxLoss
double
1000
Perda máxima em um dia em dinheiro
maxProfit
double
5000
Ganho máximo do dia em dinheiro
Show all 14 inputs
Name
Type
Default
Description
startTime
datetime
D'09:30:00'
Horário de início
endTime
datetime
D'17:30:00'
Horário de finalização
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone AbraaoM/Martingale from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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