Ninja Trinity XAU was built around a simple idea: XAUUSD does not always offer the same type of trading setup.
A breakout and retest, an extended Wednesday move and a momentum reversal require different entry rules. Instead of forcing one strategy to handle every market condition, Ninja Trinity XAU combines three independent strategies inside one Expert Advisor.
It is designed for XAUUSD / GOLD on the M5 timeframe.
The Three Strategies
1. Strategy A — Breakout and Retest
This is the main strategy.
It looks for a confirmed breakout followed by a retest of the relevant price area. Trend and volatility filters are used to avoid treating every temporary price spike as a valid breakout.
The purpose is to wait for a more structured continuation setup rather than entering immediately after every strong candle.
2. Strategy B — Wednesday Mean Reversion
This strategy is limited to selected Wednesday conditions.
It looks for an extended price movement and then evaluates the possibility of price returning toward its recent mean.
This is different from the breakout logic because it is designed for a possible return after price has become stretched.
3. Strategy C — Momentum and Reversal
This strategy combines momentum-continuation conditions with reversal-style long entries.
It also has separate Friday position-management settings, including an hour for stopping new entries and an hour for closing applicable positions.
How the Strategies Are Separated
Each strategy has its own:
• Entry logic
• Risk setting
• Magic Number
• Maximum lot setting
• One-position control
• Enable or disable switch
This allows each strategy to be tested separately inside the MT5 Strategy Tester.
However, “independent” does not mean that the strategies are completely uncorrelated. They all trade XAUUSD. If more than one strategy opens a position, total account exposure can become high.
Important Risk Information
Ninja Trinity XAU uses aggressive default risk settings:
• Strategy A default risk: 9.35%
• Strategy B default risk: 1.50%
• Strategy C default risk: 1.50%
Strategy A has a much higher default risk than the other two strategies.
These settings are not intended for traders seeking low drawdown or conservative account growth. Large drawdowns and losses are possible.
Traders who want lower exposure should reduce all three RiskPercent inputs proportionally and test the adjusted settings before live use.
Risk-Control Features
The EA does not use:
• Grid trading
• Martingale
• Averaging-down recovery
• Automatic loss-recovery lot increases
It includes:
• Stop Loss protection
• Spread and slippage filters
• Volume and margin validation
• Separate Magic Numbers
• One-position control for each strategy
• Friday controls for Strategy C
• Support for broker symbol suffixes
The EA does not require an external DLL, WebRequest or external data file.
What Traders Should Check
XAUUSD specifications differ between brokers. Contract size, tick value, digits, spread, server time, slippage, execution speed and historical data can all affect the results.
Before using Ninja Trinity XAU, check:
• Your broker’s correct GOLD symbol
• M5 as the chart and testing timeframe
• Spread and execution conditions
• Available free margin
• Maximum combined exposure
• Broker server time
• Strategy C’s Friday settings
• Drawdown at the selected risk settings
A hedging account is preferred. Low spread, stable execution and sufficient free margin are also important.
Use the EA on one XAUUSD M5 chart. Do not attach multiple copies using the same Magic Numbers.
Recommended Testing Process
1. Download the free demo from MQL5 Market.
2. Test each strategy separately.
3. Test all three strategies together.
4. Use your own broker’s XAUUSD data.
5. Check combined drawdown and margin usage.
6. Reduce the three risk settings if necessary.
7. Run a demo forward test before live use.
Ninja Trinity XAU is available here:
Please test the free demo with your own broker conditions before considering live trading.
Risk Notice
Backtest results do not guarantee future performance. Ninja Trinity XAU uses aggressive default risk settings, and XAUUSD can move sharply within a short period.
Live results may differ because of spreads, slippage, execution speed, server time, symbol specifications, historical data and changing market conditions.
Use only risk capital and select settings appropriate for your account size and risk tolerance.


