Collection · MT5

XSpark Trading Engine

by Xennarc

XSpark is a modular automated trading framework for MetaTrader 5 that prioritizes capital protection and risk management.

GitHub stars1
Forks0
Last update2 days ago20 Sep 2026
LicenceNone stated

Overview

XSpark Trading Engine includes a collection of distinct Expert Advisors covering various methodologies: a trend-pullback scalper, candle momentum tracking, Smart Money Concepts (SMC), and ICT liquidity models. The system enforces strict risk controls, including percentage-based position sizing, daily drawdown limits, and an emergency account-wide kill switch. The architecture separates strategy logic from execution, featuring a visual dashboard for monitoring broker costs and trade status. It is currently in active development.

Details

Author

Xennarc on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Scalping, SMC / ICT / price action, Multi-strategy

Markets

Forex

Timeframes

M1-M5, M15-H1, H4 and above

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.

Input parameters

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

NameTypeDefaultDescription
InpScalpEnableTradingboolfalsePlace real trades (off = watch and log only)
InpScalpRiskPctdouble1.0Money risked on one trade (% of your balance)
InpScalpSessionsEXSparkScalpSessionsXSPARK_SCALP_SESSIONS_ALLWhich trading sessions to trade
InpScalpBrokerUtcOffsetint0Broker clock offset from UTC in hours (Exness uses 0)
InpScalpCommissionPerLotdouble0.0Commission per 1.0 lot, both ways, in account money (0 = none)
InpScalpExitStyleEXSparkScalpExitStyleXSPARK_SCALP_EXIT_EVENWhere the target sits
InpScalpMinLotRiskCapPctdouble3.0Smallest trade may risk up to this % (0 = never exceed risk %)
InpScalpMaxDailyDDPctdouble6.0Stop opening trades if the account falls this much today
InpScalpUseTotalDDKillSwitchbooltrueEmergency stop: close everything on a big account fall
InpScalpMaxTotalDDPctdouble20.0Account fall that sets off the emergency stop (%)
InpScalpMagicNumberulongXSPARK_TRENDSCALP_MAGIC_DEFAULTThis bot's ID tag - a different one per chart
InpScalpVerboseLogboolfalseWrite detailed logs (for troubleshooting)
Show all 13 inputs
NameTypeDefaultDescription
InpScalpClearKillswitchLatchboolfalseClear the emergency stop once, then set back to false

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Xennarc/xSpark 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, and any .mqh files into the Include folder the code expects.
  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

49 stars

This repository contains a diverse collection of MetaTrader 5 expert advisors ranging from RSI-based scalping robots to multi-timeframe trend following systems. The EAs utilize various technical indicators including EMA crossovers, MACD momentum, and ATR for volatility-based exits. The core logic often incorporates mul

MT5 Collection ScalpingTrend followingBreakout High risk
Updated 2 months ago Custom licence GitHub repository of Frontline MT5 Strategy Collection

This MetaTrader 5 repository features a diverse collection of automated trading strategies, including indicator-based scalpers and price action robots. The experts utilize technical filters such as Average True Range periods and baseline moving averages to identify entry signals. Key risk management features integrated

MT5 Collection Trend followingBreakoutScalping

DaxAlgo Trading Strategies

by dhruuvsharma
9 stars

This collection of MetaTrader 5 expert advisors focuses on order flow, microstructure, and scalping strategies. It includes tools for cumulative delta scalping, swing pivot fading, and bridging external signals from TradingView via file monitoring. The suite features robust risk controls such as daily loss and profit l

MT5 Collection ScalpingMean reversionTrend following
7 stars

This repository contains a collection of MetaTrader 5 expert advisors, primarily featuring the Signal Poller EA series alongside standard indicator-based robots. The system is designed for high-leverage environments, specifically targeting gold, bitcoin, forex, and indices. It utilizes an external signal push architect

MT5 Collection Trend followingBreakoutScalping High risk
Updated 6 months ago None stated GitHub repository of Signal Poller EA Collection
6 stars

This repository provides a collection of MetaTrader 5 expert advisors based on Smart Money Concepts and ICT methodologies. The tools implement price action strategies including Fair Value Gaps, Market Structure Shifts, and the Next Day Model. Each EA handles trade execution with automated risk-based lot sizing and conf

MT5 Collection SMC / ICT / price actionScalpingTrend following
3 stars

This repository provides a diverse collection of MetaTrader 4 and MetaTrader 5 expert advisors covering multiple trading methodologies. It includes robots for smart money concepts with fair value gap detection, Joe Ross hook patterns, and volatility-based scalping. The library features specific tools for XAUUSD and mul

MT4MT5 Collection SMC / ICT / price actionScalpingBreakout High risk

More collections

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers