Ninja Trinity XAU
- Experts
-
Atsushi Katayama
I develop and test MetaTrader 5 Expert Advisors with a focus on backtesting, forward testing, and risk management.
My products do not rely on martingale, grid, or averaging strategies. - Versão: 1.2
- Ativações: 5
Ninja Trinity XAU
Ninja Trinity XAU is an Expert Advisor developed for XAUUSD on the M5 timeframe.
It combines three independent trading strategies in one EA. Each strategy uses its own entry logic, risk setting and Magic Number. The system does not use grid trading, martingale or averaging-down position recovery.
Three independent strategies
- Strategy A - Breakout and Retest
Looks for confirmed breakout conditions followed by a retest. This is the main strategy and uses trend and volatility filters. - Strategy B - Wednesday Mean Reversion
Looks for stretched price movement during selected Wednesday conditions and trades a possible return toward the mean. - Strategy C - Momentum and Reversal
Combines momentum continuation and reversal-style long entries. It also includes separate Friday position-management controls.
The three strategies use separate Magic Numbers and can be enabled or disabled individually.
Main features
- Designed for XAUUSD / GOLD
- Recommended timeframe: M5
- Three independent trading strategies
- Automatic risk-based lot calculation
- Separate Magic Number for each strategy
- Stop Loss protection
- One-position control for each strategy
- Spread and slippage filters
- Volume and margin validation
- Friday stop and close controls for Strategy C
- Support for broker symbol suffixes
- No grid
- No martingale
- No external DLL
- No WebRequest
- No external file dependency
Risk profile
This EA uses aggressive default risk settings.
- Strategy A default risk: 9.35%
- Strategy B default risk: 1.50%
- Strategy C default risk: 1.50%
Because the strategies are managed separately, total account exposure can become high when more than one strategy has an open position.
This product is not intended for traders looking for low drawdown or conservative account growth. Users who prefer lower exposure should reduce all three RiskPercent inputs proportionally.
Always test the EA on a demo account before using it on a live account.
Backtest summary
The following figures are Strategy Tester results and are not live trading results.
- Symbol: XAUUSD
- Timeframe: M5
- Test period: 2019.01.01 - 2026.06.30
- Data source: Dukascopy tick data
- Initial deposit: 10,000 USD
- Leverage: 1:100
- History quality: 98%
- Total trades: 1,083
- Total net profit: 3,367,018.75 USD
- Profit Factor: 2.91
- Balance relative drawdown: 46.18%
- Equity relative drawdown: 61.42%
- Recovery Factor: 11.75
- Sharpe Ratio: 3.29
Performance was not evenly distributed across the full test period. The period from 2019 to 2024 was relatively flat compared with the recent period. Most of the balance expansion occurred during 2025 and the first half of 2026.
The full-period balance graph is included in the screenshots so users can review both the long inactive period and the recent performance.
Recommended environment
- Symbol: XAUUSD or the broker's equivalent GOLD symbol
- Timeframe: M5
- Account type: Hedging account preferred
- Execution: Low spread and stable execution
- VPS: Recommended
- Free margin: Sufficient free margin is required
Use the EA on one XAUUSD M5 chart. Do not attach multiple copies using the same Magic Numbers.
Main input parameters
- C1_Enable, C2_Enable, C3_Enable
Enable or disable each strategy. - C1_RiskPercent, C2_RiskPercent, C3_RiskPercent
Risk percentage used for automatic lot calculation. - C1_MagicNumber, C2_MagicNumber, C3_MagicNumber
Unique identification number for each strategy. Leave the default values unless another EA uses the same numbers. - C1_MaxLot, C2_MaxLot, C3_MaxLot
Maximum lot limit for each strategy. - C1_OnePositionOnly, C2_OnePositionOnly, C3_OnePositionOnly
Restricts each strategy to one active position. - C3_ServerHourOffset
Adjustment for broker server-time differences. Leave at zero first and change only after checking the broker's server time. - C3_FridayStopHour
Hour after which Strategy C stops opening new positions on Friday. - C3_FridayCloseHour
Hour used by Strategy C for Friday position closing.
The EA contains additional entry, ATR, time, spread and exit parameters. The default settings should be used first. Changing advanced parameters can significantly change trade frequency, risk and performance.
Broker differences
XAUUSD specifications differ between brokers. Contract size, tick value, digits, spread, execution speed, server time and historical data can all affect trading results.
Backtest the EA using your own broker's data before live trading. Results on Exness, IC Markets or another broker may differ from the screenshots.
Important information
Backtest results do not guarantee future performance.
Trading XAUUSD involves significant risk. Large drawdowns and losses are possible. Use only risk capital and select settings appropriate for your account size and risk tolerance.
Updates will focus on compatibility, execution safety and correction of critical errors.
