Skip to content
HomeAboutProjectsTradingContact

Navigation

HomeAboutProjectsTradingContactResume

Connect

All strategies
MetaTrader 5MQL5XAUUSD ยท M5 ยท 100 EMA trend filter

Gold EMA Cross Scalper

The 9 EMA crossing the 21 EMA fires the trade, but only when the entire crossover candle sits beyond the 100 EMA, which keeps the system from fading the dominant trend. Stops go $10 beyond the most recent swing rather than a fixed distance, so risk adapts to the structure actually in front of the trade โ€” and any signal whose stop falls outside a $5โ€“$100 band is rejected rather than taken at bad size. There is no take profit: positions run until the opposite 9/21 cross, with the stop pulled to break-even once the trade reaches 1R. That exit is what gives the results their shape โ€” only 27% of trades win, but the average winner is about three times the average loser. The EA reads the MT5 economic calendar directly and refuses to enter within 15 minutes either side of high-impact USD news, which is where gold systems usually give back the month.

GoldEmaCrossScalper.mq5

How it trades

Signal
9 EMA crosses 21 EMA, confirmed on the closed candle, filled at the next bar open
Trend filter
The whole crossover candle must sit beyond the 100 EMA
Stop
$10 beyond the swing high/low from a 10-bar lookback
Stop sanity gate
Signal rejected if the resulting stop is under $5 or over $100
Target
None โ€” take profit disabled; the position runs to the opposite 9/21 cross
Break-even
Stop moves to entry once the trade reaches 1R
News filter
MT5 calendar โ€” no entries ยฑ15 min around high-impact USD events
Spread gate
No entry above a $1.00 spread
Sizing
2% of balance risked per trade, capped at 2.00 lots, one position at a time
Filters held off
The 08:00โ€“20:00 session gate exists in the code but was disabled for this run

Performance

Net return
58.11%
Profit factor
1.16
Max drawdown
24.69%
Win rate
27.12%
Total trades
638
Expectancy
$9.11
Sharpe
2.38
Recovery factor
1.27

Test conditions

Period
2026-01-01 โ†’ 2026-08-31
Initial deposit
$10,000
Risk per trade
2% per trade
Modelling
100% real ticks
Broker / server
Exness Technologies Ltd

How to read these numbers

  • The risk model engaged as configured. On a $10,000 deposit a 2% risk resolves to real position sizes โ€” lots ranged 0.02 to 0.21, none floored at the broker minimum or capped at the 2.00 lot ceiling โ€” and realised risk came out at a median 1.89% of balance per trade. The +58% headline is a fair reflection of the risk that was actually taken.
  • The edge is concentrated in a handful of trades. The three largest winners account for 85% of the $5,811 net profit, and stripping out the top five leaves the remaining 633 trades net negative. That is the expected shape of a let-winners-run system, but it means the result rests on catching a small number of large moves โ€” a window that missed them would look very different. The 1.16 profit factor says the same thing: $42,953 of gross profit against $37,142 of gross loss.
  • Only 27% of trades win, and the test ran through 14 consecutive losses at one point on the way to a 24.7% peak-to-trough drawdown in closed balance (28.1% on equity). A system with this distribution only works if every signal is taken; skipping trades after a losing run is how the winners get missed.
  • The worst trade lost 3.4R, not the 1R the stop was sized for. A position held over the weekend of 16โ€“18 January 2026 gapped through its stop and closed $630 down โ€” 6.6% of the account at the time. Stops bound risk under normal conditions; they do not guarantee it across a weekend gap.

These are historical backtest results, not live trading returns. Backtests exclude slippage variance, requote behaviour, and swap changes that a live account would experience. Past performance does not guarantee future results.

Equity curve

Account balance and drawdown across every closed trade.

Balance$7,812$10.0k$12.2k$14.5k$16.7kstart$15,811Drawdown from peak0%-24.7%Jan 26Feb 26Mar 26May 26Jun 26
Unmodified MetaTrader 5 strategy report for Gold EMA Cross Scalper

Unretouched MetaTrader 5 report โ€” the source of the figures above.

Trade journal

Every closed position from the test, in order.

Closed trades, showing 25 of 638
#OpenedClosedSideLotsEntryExitRP/L
102 Jan 26, 07:4002 Jan 26, 12:45Buy0.114379.874388.14+0.46+$90.93
202 Jan 26, 13:0502 Jan 26, 13:25Buy0.094397.614381.52-0.72โˆ’$144.81
302 Jan 26, 20:0002 Jan 26, 20:20Sell0.104318.254322.48-0.23โˆ’$42.33
405 Jan 26, 04:2505 Jan 26, 11:20Buy0.114405.224427.56+1.26+$245.66
505 Jan 26, 14:0505 Jan 26, 19:15Buy0.054422.434440.09+0.48+$88.30
605 Jan 26, 20:2505 Jan 26, 20:40Buy0.124444.904441.03-0.24โˆ’$46.36
706 Jan 26, 06:5506 Jan 26, 08:00Buy0.084464.774459.45-0.23โˆ’$42.51
806 Jan 26, 08:2506 Jan 26, 09:15Buy0.094469.314457.94-0.52โˆ’$102.29
906 Jan 26, 20:2507 Jan 26, 00:10Buy0.104486.474492.19+0.31+$52.22
1007 Jan 26, 04:0507 Jan 26, 07:45Sell0.114473.284458.95+0.84+$157.60
1107 Jan 26, 10:3007 Jan 26, 10:45Sell0.124459.904466.20-0.38โˆ’$75.62
1207 Jan 26, 11:1507 Jan 26, 14:05Sell0.124461.724452.84+0.55+$106.59
1307 Jan 26, 14:3007 Jan 26, 14:35Sell0.104444.794449.54-0.24โˆ’$47.55
1407 Jan 26, 14:4007 Jan 26, 16:00Sell0.084441.034446.18-0.22โˆ’$41.18
1507 Jan 26, 18:0507 Jan 26, 19:55Sell0.094450.664457.62-0.31โˆ’$62.60
1607 Jan 26, 23:0508 Jan 26, 00:40Buy0.094462.204454.00-0.40โˆ’$87.21
1708 Jan 26, 08:0508 Jan 26, 09:10Sell0.094425.814433.02-0.34โˆ’$64.90
1808 Jan 26, 09:2008 Jan 26, 09:30Sell0.104426.644430.37-0.20โˆ’$37.27
1908 Jan 26, 10:2008 Jan 26, 10:45Sell0.094424.394432.69-0.41โˆ’$74.70
2008 Jan 26, 11:2008 Jan 26, 12:39Sell0.124428.824428.850.00โˆ’$0.38
2108 Jan 26, 13:1008 Jan 26, 13:25Sell0.084418.754432.36-0.60โˆ’$108.84
2208 Jan 26, 14:1508 Jan 26, 14:25Sell0.084423.534429.07-0.24โˆ’$44.37
2308 Jan 26, 20:0509 Jan 26, 00:20Buy0.084457.954471.86+0.59+$107.36
2409 Jan 26, 02:0509 Jan 26, 03:15Buy0.064475.654464.35-0.35โˆ’$67.76
2509 Jan 26, 05:3509 Jan 26, 08:40Buy0.084471.084466.82-0.19โˆ’$34.09

Showing 25 of 638 closed trades

Download full report
โ† Chandelier Exit Strategy v3.1CME Gap-Fill v4.4.1 โ†’

Let's work
together.

Send an emailBook a call

Navigation

HomeAboutProjectsTradingContact

Connect

TwitterGitHubInstagramLinkedIn

Site

Built with Next.js, Tailwind CSS, and GSAP.

Deployed on Vercel.

ยฉ 2026 Femi Ajanaku. All rights reserved.

Relentless by design.