XM AI Scalping Bot evaluates market dynamics using Kaufman Efficiency Ratio (ER), Kaufman Adaptive Moving Average (KAMA) crossovers, RSI momentum, and depth-of-market liquidity walls, verified by an embedded ONNX machine learning model. Risk controls include percentage-based risk sizing, hard dollar loss caps per trade, daily profit and loss limits, equity drawdown circuit breakers, news filters, and dynamic ATR trailing stops. It supports multi-symbol trading with global execution controls.
Embedded ONNX machine learning inference filter
Kaufman Adaptive Moving Average and ER trend engine
Depth-of-market order flow wall detection
Hard dollar loss cap and daily drawdown protection
Read from XM_AI_ScalpingBot.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpRiskPercent
double
1.0
🛡️ 1.0% Risk per trade
InpMaxAllowedLot
double
0.10
🛡️ Global Hard Max Lot (Pro 0.10 Lot Scaling: +$15 to +$25 per Win)
InpUseCompounding
bool
true
Auto-compounding lot sizing enabled?
InpUseKellyCriterion
bool
false
⛔ DISABLED - dangerous on micro accounts < $500
InpDailyProfitTargetPercent
double
10.0
🎯 Stop trading if NET profit hits +10% ($10 today)
InpDailyProfitTrailingTriggerPercent
double
3.0
🛡️ Start locking profit after +3% ($3)
InpDailyProfitTrailingLockPercent
double
1.5
🛡️ Lock at least +1.5% ($1.50)
InpDailyLossLimitPercent
double
3.0
⛔ Daily Loss Limit 3.0% (Max -$3.00 on $100 balance)
InpMaxDrawdownPercent
double
3.0
Maximum Equity Drawdown Shield (3.0%)
InpMaxDollarLossPerTrade
double
8.00
🛡️ Hard Dollar Loss Shield: Strict $8.00 Max Loss Cap (Zero Big Losses!)
InpMaxOpenTrades
int
30
Max 30 total open trades across all pairs (Quality Portfolio)
InpMaxTradesPerSymbol
int
2
Max 2 open trades per symbol (Reduced exposure)
Show all 40 inputs
Name
Type
Default
Description
InpMaxSpreadPoints
double
30.0
Max spread 30 pts (Quality execution only)
InpLossCooldownMinutes
int
3
⏳ Loss Cooldown: Pause symbol for 3m after hitting Stop Loss (Anti-Revenge)
InpGlobalOrderBufferSeconds
int
2
🛡️ Global Order Lock: Min 2s between trades across charts (prevents race conditions)
InpAutoFilterLowWinSymbols
bool
false
Auto-block disabled: all Top 20 pairs active with safe lot
InpMaxConcurrentYenTrades
int
3
🛡️ Max concurrent JPY trades (Reduced Yen exposure)
InpUseDOM_Filter
bool
true
🛡️ Avoid trading into Sell/Buy Walls
InpDOM_WallRatio
double
3.0
Ratio to consider as Wall (e.g. 3x volume)
InpAvoidHighImpactNews
bool
true
🛡️ Active News Protection: Pause trading during high-impact news
InpNewsPauseBefore
int
5
Pause trading 5 mins BEFORE news
InpNewsPauseAfter
int
5
Pause trading 5 mins AFTER news
InpKAMA_Period
int
10
ER Period for KAMA
InpKAMA_Fast
int
2
Fast Smoothing Constant
InpKAMA_Slow
int
30
Slow Smoothing Constant
InpEmaFast
int
9
Fast EMA
InpEmaSlow
int
21
Slow EMA
InpUseMTFFilter
bool
false
Fast Scalping: disabled to allow both BUY & SELL M5 swings
InpTrendTimeframe
ENUM_TIMEFRAMES
PERIOD_H1
Higher Timeframe — H1 for strong trend (Elder Triple Screen)
InpTrendEMA
int
50
EMA Period for Trend Filter
InpUsePinBarReversal
bool
true
Trade Pin Bar Reversals (Counter-Trend)
InpRSI_Period
int
14
RSI Period
InpRSI_BuyMax
double
80.0
📈 (Relaxed) RSI maximum for BUY (don't chase overbought)
InpRSI_BuyMin
double
20.0
📈 (Relaxed) RSI minimum for BUY (don't buy at extreme oversold)
InpRSI_SellMax
double
80.0
📉 (Relaxed) RSI maximum for SELL (don't sell at extreme overbought)
InpRSI_SellMin
double
20.0
📉 (Relaxed) RSI minimum for SELL (don't chase oversold)
InpUseONNX_AI
bool
true
🧠 ONNX AI Win-Probability Filter (ACTIVATED!)
InpONNX_MinProb
double
0.60
🛡️ High-Confidence Filter: 60%+ Win Probability Required (Eliminates low-edge losses)
InpUseSMC_FVG
bool
false
(Turned OFF for Scalping) Only trade inside Fair Value Gaps (FVG)
InpFVG_Lookback
int
10
FVG Lookback bars
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone mt-abdulla-it/xm-ai-scalping-bot 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
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
AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa
This machine learning expert advisor for MetaTrader 5 utilizes ensemble and deep learning models to analyze market patterns. It offers a versatile multi-strategy approach, allowing users to toggle between trend-following, scalping, and grid-hedging behaviors. Risk controls are comprehensive, featuring fixed percentage
This MetaTrader 5 expert advisor acts as a bridge between the trading terminal and an external Python-based AI server. It extracts market data and technical indicators—including EMA, RSI, ATR, and ADX across multiple timeframes—to request trade signals via ZeroMQ, TCP, or file-based communication. The EA manages trade
The Gold Sniper Scalper is an automated trading robot designed for MT5, specifically optimized for scalping gold (XAUUSD). The EA employs technical analysis using indicators like exponential moving averages (EMA), RSI, and ATR for entries, with optional multi-timeframe (MTF) trend confirmation across M5 and M15 charts.