ScalperBot executes four distinct trading strategies across independent timeframes: box mean-reversion, candle momentum, channel breakouts, and trend pullbacks. Entries are filtered by higher-timeframe trend directional filters and relative ATR spread limits. Trades utilize ATR-calculated stop loss distances and manage risk in R-multiples, offering partial profit taking at initial targets and trailing stops for secondary runner positions. Risk parameters include risk-based lot sizing, maximum daily loss caps, target profit limits, and consecutive loss trade pauses.
Four sub-strategies: mean-reversion, momentum, breakout, and pullback
ATR-based dynamic stop losses and R-multiple profit targets
Partial scalp exits at +1R and ATR trailing stops for runner positions
Account risk percentage lot sizing and daily loss protection
Relative spread filters and higher-timeframe EMA trend alignment
Read from ScalperBot.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpLotMode
ENUM_LOT_MODE
LOT_RISK_PCT
Come si calcola il lotto
InpRiskPct
double
3.0
Rischio per trade in % del capitale (modo LOT_RISK_PCT)
InpLotSize
double
0.25
Lotto fisso (modi LOT_FIT_RISK / LOT_FIXED_SKIP) e lotto massimo in LOT_RISK_PCT
InpMagicBase
ulong
998870
Magic number base (ogni strategia usa base+indice)
InpMaxPositions
int
3
Posizioni aperte massime (tutte le strategie)
InpMaxSpreadPctR
double
25.0
Spread massimo in % dello Stop Loss (R) della strategia
InpMaxSpread
int
0
Spread massimo assoluto (Punti), 0 = off (vale solo quello in % di R)
InpSlippage
int
20
Slippage minimo (Punti): si usa il maggiore tra questo e il 10% di R
InpStatusEveryMin
int
5
Ogni quanti minuti scrivere lo stato nel journal (0 = solo sul grafico)
InpSlMode
ENUM_SL_MODE
SL_ATR
Come si calcola lo Stop Loss
InpMaxLossMoney
double
18.0
Perdita massima per posizione (€): tetto o SL fisso. 0 = solo la % qui sotto
InpMaxLossPct
double
6.0
Perdita massima per posizione in % del capitale (0 = off): vale il piu' basso tra questa e il tetto in euro
Show all 40 inputs
Name
Type
Default
Description
InpMaxLossRMult
double
1.3
Chiusura d'emergenza a X volte il rischio previsto (0 = off): lo SL che non scatta non costa piu' di cosi'
InpBeR
double
0.5
A +X R porta lo SL a Break-Even
InpBeBufferPoints
int
5
Buffer minimo oltre l'apertura per il Break-Even (le commissioni reali si aggiungono da sole)
InpTp1R
double
1.0
A +X R chiude lo scalp (parziale se runner, totale altrimenti)
InpScalpPct
double
50.0
% di posizione chiusa allo scalp (se runner attivo)
InpLockR
double
0.5
Dopo lo scalp, SL a +X R
InpTp2R
double
3.0
Target finale del runner (R)
InpTrailAtrMult
double
1.5
Trailing del runner: estremo dall'ingresso - ATR x X
InpTrailStepPctR
double
10.0
Trailing: sposta lo SL solo se migliora di almeno X% di R
InpCommissionPerSide
bool
true
Commissione addebitata sia in entrata che in uscita
InpMaxDailyLoss
double
75.0
Perdita massima giornaliera (€), 0 = off
InpMaxDailyLossPct
double
8.0
Perdita massima giornaliera in % del saldo di inizio giornata (0 = off): vale la piu' bassa tra le due
InpDailyTarget
double
150.0
Obiettivo giornaliero (€): raggiunto, niente nuovi ingressi; 0 = off
InpDailyTargetPct
double
12.0
Obiettivo giornaliero in % del saldo di inizio giornata (0 = off): vale il piu' basso tra i due
InpMaxConsecLosses
int
3
Perdite consecutive prima della pausa, 0 = off
InpPauseMinutes
int
60
Durata pausa dopo le perdite consecutive
InpMinSecBetweenTrades
int
30
Attesa minima tra due ingressi (secondi)
InpStartHour
int
4
Ora server inizio operatività (0-23): 4 = niente ingressi di notte (00-03 italiane)
InpEndHour
int
22
Ora server fine operatività (1-24); 0-24 = sempre. 4-22 = 03:00-21:00 italiane
InpAdxPeriod
int
14
InpAdxRangeMax
double
20.0
RNG solo se ADX < X (mercato laterale)
InpAdxTrendMin
double
22.0
MOM e PB solo se ADX >= X (mercato direzionale)
InpAtrPeriod
int
14
InpTrendFilter
bool
true
Opera solo nel verso del trend del timeframe alto
InpTrendTf
ENUM_TIMEFRAMES
PERIOD_H1
Timeframe del trend
InpTrendEma
int
50
Periodo della EMA di trend
InpTrendNeedSlope
bool
true
Serve anche la EMA inclinata nel verso (no = basta prezzo sopra/sotto)
InpTrendInvert
bool
true
Controtrend: opera solo CONTRO il verso del timeframe alto
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone MassimilianoMazzeo/ScalperBot 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.
UltraHFT Expert Advisor is a high-frequency scalping robot for MetaTrader 5 that combines five strategy layers including EMA crossovers, RSI mean reversion, and volatility breakouts. It evaluates market conditions on every tick, entering trades when multiple signals align. The system employs strict risk controls with h
Phoenix EA is an autonomous multi-strategy trading robot developed for MetaTrader 5. It combines four distinct trading approaches—trend following, mean reversion, breakout, and scalping—using a weighted signal aggregator and dynamic market regime detection. Position sizing is calculated using the Kelly Criterion alongs
This MetaTrader 4 expert advisor utilizes the SuperTrend and Bollinger Bands indicators to identify market entries. It monitors for trend changes, breakouts, corrections, and pullbacks. The EA incorporates several risk management tools, including a configurable stop loss, dynamic stop loss logic, and a trailing stop. I
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
Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index
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