MSP Open Alpha 1

A compact trend-following system for XAUUSD on M30, built around a classic EMA crossover with a higher-period direction filter. Designed as a clean, readable starting point to understand how a mechanical trend strategy behaves.


[ MSP Open Alphas Dedicated group ]

Strategy typology

  • Trend-following EMA crossover system on closed M30 bars, distributed for XAUUSD.
  • Single-position design ("one trade at a time"): a new signal is ignored while any strategy position or pending order is still open — no pyramiding.
  • Intraday: entries are restricted to a broker server-time window (07:00–19:00 by default).

Entries

  • Signals are evaluated once per new bar — entries never repaint.
  • Buy: the fast EMA (20) crosses above the slow EMA (50) between the last two closed bars, and the latest close is above both the fast EMA and the 200 EMA trend line.
  • Sell: the exact mirror image (cross below, close below fast EMA and below EMA 200).
  • Executed as market orders at the current ask/bid.

Exits

  • Every position carries a stop-loss at a fixed percentage of the entry price (1% by default).
  • No take-profit (TP = 0) and no signal-based exit: a trade runs until its stop-loss or the daily close.
  • Once per day at a configurable server time (20:00 by default), all strategy positions are closed and all pending orders deleted.

Capital Protection

  • Risk-based position sizing: a fixed percentage of the balance (1% by default) is risked per trade; lot size is derived from the stop-loss distance using tick size, tick value and lot step, then clamped to the broker's min/max volume.
  • New orders are rejected when free margin is insufficient and no-change SL/TP modifications are rejected, while position-reducing and closing orders are always allowed.
  • MagicNumber + comment ownership tags ensure the EA only scans and manages its own positions and orders.

Backtest Results — XAUUSD M30, 2020.01.01 – 2026.10.01


Broker: IC Markets (EU) Ltd · USD account · initial deposit 1,000.00 · leverage 1:50 · "Every tick" model · history quality 99% (79,801 bars / 9,542,122 ticks) · all inputs at defaults.


Metric Value
Total net profit +1,107.33 USD (+110.73% on the 1,000 USD deposit)
Profit factor 1.46 (gross profit 3,522.91 vs gross loss −2,415.58)
Win rate 52.80% — 264 of 500 trades (longs 51.45% won, shorts 54.46% won)
Expected payoff +2.21 USD per trade
Max drawdown Balance: 136.08 USD (8.07%) · Equity: 145.25 USD (8.59%)
Recovery factor / Sharpe ratio 7.62 / 4.13
Largest win / largest loss +105.28 / −51.81 USD (avg win +13.34 vs avg loss −10.24)
Max consecutive losses 8 trades (−28.41 USD total)
Average holding time 6h 08m (min 5m 40s, max 34h 30m)
Margin level at end 1,046.29% (low margin usage thanks to 1% risk sizing)

What the numbers show:

  • Positive expectancy: profit factor 1.46 with average win (+13.34) clearly larger than average loss (−10.24) — the edge comes from payoff asymmetry, not from a high win rate.
  • Balanced long/short activity (276 long / 224 short trades, both ~52–54% winners) — the logic is not a one-directional curve-fit.
  • Drawdown stayed in single digits (max 8.59% of equity) over ~6.8 years — consistent with the 1%-per-trade risk sizing and the daily close-all.
  • AHPR 1.0016 / GHPR 1.0015 with LR correlation 0.96: the equity curve grows steadily hour-by-hour and day-by-day, not from one lucky spike.

Note: these results come from one broker, one symbol, one period and one set of inputs, on a 1,000 USD demo-style backtest. They show how the code behaves in the Strategy Tester — they are not a promise of future results (see Risk Warning below). 

Backtest & Setup Guide

  • EA launching asset: XAUUSD (Gold)
  • Strategy Timeframes: M30
  • Minimum / Recommended deposit: 200 / 500 USD (demo-first recommended)
  • VPS recommended for stable execution
  • Preferred Broker: ICMarkets

Inputs

  • FastEmaPeriod — fast EMA period (20).
  • SlowEmaPeriod — slow EMA period (50); must be greater than FastEmaPeriod .
  • TrendEmaPeriod — trend filter EMA period (200).
  • EntryStartHour / EntryStartMinute — entry window open, server time (7:00).
  • EntryEndHour / EntryEndMinute — entry window close, server time (19:00).
  • ExitHour / ExitMinute — daily close-all time, server time (20:00).
  • RiskPercent — account risk per trade, in percent (1.0 = 1% of balance).
  • StopLossPercent — stop-loss distance as a percent of the entry price (1%).


What this EA is and what it is not

  • This EA is an educational algo, not a production-ready algo
  • This EA is part of the MSP Open Alpha series: open source codes by Meta Signals Pro - Research Lab
  • It is intentionally simple: it is a learning and experimentation tool, not a fully optimized trading system.

  • If you want professional algos, explore MetaSignalsPro products on the MQL5 marketplace

Risk Warning

More from author
Gold Zilla AI MT5
Christophe Trouillas
4.58 (33)
Generate controlled returns with an  AI-assisted , risk-diversified and Gold-optimized EA . GoldZILLA AI is a multi-strategy algorithm detecting market regimes to dynamically select from five distinct strategies, optimizing returns while minimizing drawdown on XAUUSD. [ Live Signal ] - [  Dedicated group | Version MT5 - MT4 ] After the purchase, please send me a private message to receive the user manual and the AI setup instructions. Why choose this EA? Dynamic multi-strategy approach Advanced
Squid Grid AI MT5
Christophe Trouillas
4.63 (8)
Trade smarter and safer with a risk-diversified multi-asset grid EA powered by AI risk management . SQUID GRID AI is a sophisticated grid-based system capitalizing on mean reversion opportunities across 6 uncorrelated instruments. It optimizes portfolio weight to maximize profits while actively managing risk through AI-driven market monitoring and multi-layer protection protocols. [ Live Signal ] - [  Dedicated Support Group | Version MT5 - MT4 ] After the purchase, please send me a private mess
TrendDecoder Premium
Christophe Trouillas
5 (8)
Identify ranges  | Get earliest signals of Trends  | Get clear exits before reversal  | Spot the Fibo levels the price will test Non-repainting, non-delayed indicator - ideal for manual and automated trading - for all assets and all time units After purchase,   please contact me   for recommended and personalised settings Version   MT4  -  MT5   |  Check our   3 steps MetaMethod  to maximise your profits:   1. TrendDECODER  2. PowerZONES  3. BladeSCALPER   What is it about? TrendDECODER is a c
MSP Bridge
Christophe Trouillas
MSP_Bridge is the Free utility that connects AI Grok 4 to RiskKILLER AI Navigator  a multi-timeframe Market Direction & Strategy Assistant based on AI. This bundle will help you get  institutional-level insights with AI-driven trend, sentiment, and macro analysis, tailored to your trading style. RiskKILLER AI Navigator   [  MT5   -   MT4   ] Implementation Just download it and follow the hereunder instructions. We are at your disposal in case of difficulties, just send a private message.
FREE
MSP Bridge MT4
Christophe Trouillas
MSP_Bridge is the Free utility that connects AI Grok 4 to RiskKILLER AI Navigator  a multi-timeframe Market Direction & Strategy Assistant based on AI. This bundle will help you get  institutional-level insights with AI-driven trend, sentiment, and macro analysis, tailored to your trading style. RiskKILLER AI Navigator   [  MT5   -   MT4   ] Implementation Just download it and follow the hereunder instructions. We are at your disposal in case of difficulties, just send a private message.
FREE
BladeScalper Premium
Christophe Trouillas
5 (1)
Get a signal of the next reversal move  | Optimize the stats of gain rate   |   Get the Zones that the price will test Non-Repainting/Non-Redrawing and Non-Lagging Indicator - Ideal from both manual and robot trading - Fits all assets and all time frames After purchase,   please contact me on this channel   for recommended and personalised settings Version   MT4  -   МТ5   |  Check our   3 steps MetaMethod  to maximise your profits:   1. TrendDECODER  2. PowerZONES  3. BladeSCALPER What for?
PowerZones Premium
Christophe Trouillas
Strategic Zone touched x3, x4, x5 times    |   TP1/TP2/TP3 in  points  or  value   |   Check visually the safety of your Risk/Reward ratio Non-Repainting/Non-Redrawing and Non-Lagging Indicator - Ideal for both manual and robot trading - Fits all assets and all time frames Limited time offer  then back to >> $99  After purchase, please contact me  for recommended and personalized settings [ Version MT5  -  MT4  | Check our 3 steps MetaMethod: TrendDECODER / PowerZONES / BladeSCALPER ] What is
Get at once TrendDECODER signals on multiple assets and multiple time frames | Identify the best time frame to enter the Trend | Maximize your profits and your winrate Non-repainting, non-delayed indicator and screener - ideal for manual and automated trading - for all assets and all time units. $49  for the first 50 copies - then $99 After your purchase please leave a comment or leave a review and we will send you an EXTRA indicator worth $99. What is it about? This screener is a complementa
MetaShield EA MT4
Christophe Trouillas
5 (3)
Achieve consistent returns with a powerful EA, solid and realistic backtesting and ongoing customer support. The concept of MetaSHIELD is to offer the  best of 2 worlds : Diversification of risk with a  portfolio of set files optimized to minimize drawdowns and Performance with  single optimized setfiles,  more risky of course, but with high returns. [  Set files and set-up guide   |   Dedicated group   | Version   MT5   -   MT4  ] 10   copies left at   $99   then   $ 149 . After purchase,   pl
Bitcoin Rider EA MT4
Christophe Trouillas
Achieve massive returns with a Bitcoin-Bullrun specific EA, robust backtesting and constant support. The concept of BitcoinRIDER is to capture these parabolic moves and capitalize on the volatility and trends that define bull runs. [ Setup Guide | Support Group | Version MT5 - MT4 ] After purchase, please send us a private message to get the second setfiles. The strategy behind BitcoinRIDER uses a trend-following momentum strategy by combining concepts of RSI oversold confirmation in a short T
Risk Killer AI MT4
Christophe Trouillas
4 (4)
Generate consistent returns with a Grok AI-assisted , risk-diversified EA . RiskKILLER AI is a breakout scalping algorithm identifying key levels for potential high-volatility moves, selecting best risk-reward trades while diversifying risk on 5 assets. [   Live Signal   ] - [  Dedicated group | Version MT5 - MT4 ] After the purchase, please send me a private message to receive the user manual and the AI setup instructions. Why choose this EA? Diversifying risk Trading in both directions Holdin
Risk Killer AI Navigator MT4
Christophe Trouillas
5 (1)
RiskKILLER_AI Navigator is an AI-based, Multi-timeframe Market Direction & Strategy Assistant. Trading performance is about understanding the market like professionals do. That's exactly what the RiskKILLER_AI Navigator delivers: Gain institutional-level insights with AI-driven trend, sentiment, and macro analysis external to MQL5 , tailored to your trading style. After purchase, to get the User Manual, 1. post a comment asking for it 2. send me a direct message . [ Dedicated group | Version MT5
Squid Grid AI MT4
Christophe Trouillas
Trade smarter and safer with a risk-diversified multi-asset grid EA powered by AI risk management . SQUID GRID AI is a sophisticated grid-based system capitalizing on mean reversion opportunities across 6 uncorrelated instruments. It optimizes portfolio weight to maximize profits while actively managing risk through AI-driven market monitoring and multi-layer protection protocols. [ Live Signal ] - [  Dedicated Support Group | Version MT5 - MT4 ] After the purchase, please send me a private mess
Gold Zilla AI MT4
Christophe Trouillas
5 (2)
Generate controlled returns with an  AI-assisted , risk-diversified and Gold-optimized EA . GoldZILLA AI is a multi-strategy algorithm detecting market regimes to dynamically select from five distinct strategies, optimizing returns while minimizing drawdown on XAUUSD. [ Live Signal ] - [  Dedicated group | Version MT5 - MT4 ] After the purchase, please send me a private message to receive the user manual and the AI setup instructions. Why choose this EA? Dynamic multi-strategy approach Advanced
TrendDecoder Premium MT5
Christophe Trouillas
5 (4)
Identify ranges  | Get earliest signals of Trends  | Get clear exits before reversal  | Spot the Fibo levels the price will test   |  Non-repainting, non-delayed indicator - ideal for manual and automated trading - for all assets and all time units After purchase, please contact me to get your FREE TrendDECODER_Scanner Version   MT4  -  MT5   |  Check our   3 steps MetaMethod  to maximise your profits: 1. TrendDECODER  2. PowerZONES  3. BladeSCALPER   What is it about? TrendDECODER is a concen
BladeScalper Premium MT5
Christophe Trouillas
5 (2)
Get a signal of the next reversal move  | Optimize the stats of gain rate     |     Get the Zones that the price will test  | Non-Repainting/Non-Redrawing and Non-Lagging Indicator - Ideal from both manual and robot trading - Fits all assets and all time frames After purchase,   please contact me on this channel   for recommended and personalised settings Version  MT4   -  МТ5 |  Check our   3 steps MetaMethod  to maximise your profits:   1. TrendDECODER  2. PowerZONES  3. BladeSCALPER What f
Strategic Zone touched x3, x4, x5 times | TP1/TP2/TP3 in points or value | Check visually the safety of your Risk/Reward ratio Limited time offer – then back to $99 | After purchase, please contact me for recommended and personalised settings. Version MT5 - MT4 | Check our other tools   to maximise your profits: 1. TrendDECODER 2. PowerZONES 3. BladeSCALPER Want multi-daily signals on charts? >> Subscribe to our mql5 channel Why is it better? For the first time, our indicator connects visually
TrendDecoder Scanner MT5
Christophe Trouillas
5 (1)
Get at once TrendDECODER signals on multiple assets and multiple time frames | Identify the best time frame to enter the Trend | Maximize your profits and your winrate Non-repainting, non-delayed indicator and screener - ideal for manual and automated trading - for all assets and all time units. $49  for the first 50 copies - then   $99 After your purchase   please leave a comment or leave a review   and we will send you an EXTRA indicator worth $99. What is it about? This screener is a comple
MetaShield EA MT5
Christophe Trouillas
4.17 (12)
Achieve consistent returns with a diversified portfolio EAs, solid backtesting and ongoing customer support. The concept is to offer the  combination of 2 worlds : portfolios EAs (optimising profit vs risk, minimizing drawdowns), and  single optimized EAs  (more risky of course but globally maximizing your trading potential). After purchase,   please send us a private message  to get the other set files. [   Set files and set-up guide |   Dedicated group |  Version   MT5   -   MT4 ] Why choose
Bitcoin Rider EA MT5
Christophe Trouillas
5 (1)
Achieve massive returns with a Bitcoin-Bullrun specific EA, robust backtesting and constant support. The concept of BitcoinRIDER is to capture these parabolic moves and capitalize on the volatility and trends that define bull runs. [ Setup Guide | Support Group | Version MT5 - MT4 ] After purchase, please send us a private message to get the second setfiles. The strategy behind BitcoinRIDER uses a trend-following momentum strategy by combining concepts of RSI oversold confirmation in a short T
Risk Killer AI MT5
Christophe Trouillas
4.48 (21)
Generate consistent returns with a Grok AI-assisted , risk-diversified EA . RiskKILLER AI is a breakout scalping algorithm identifying key levels for potential high-volatility moves, selecting best risk-reward trades while diversifying risk on 5 assets. [ Live Signal ] - [  Dedicated group | Version MT5 - MT4 ] After the purchase, please send me a private message to receive the user manual and the AI setup instructions. Why choose this EA? Diversifying risk Trading in both directions Holding po
Risk Killer AI Navigator MT5
Christophe Trouillas
5 (3)
RiskKILLER_AI Navigator is an AI-based, Multi-timeframe Market Direction & Strategy Assistant. Trading performance is about understanding the market like professionals do. That's exactly what the RiskKILLER_AI Navigator delivers: Gain institutional-level insights with AI-driven trend, sentiment, and macro analysis external to MQL5 , tailored to your trading style. After purchase, to get the User Manual, 1. post a comment asking for it 2. send me a direct message . [ Dedicated group | Version MT5
Filter:
No reviews
Reply to review