Ninja Trinity XAU v1.48: 3/9/18-Week Performance Memory and Multi-Regime Control

Ninja Trinity XAU v1.48: 3/9/18-Week Performance Memory and Multi-Regime Control

29 7月 2026, 07:24
Atsushi Katayama
0
4

Ninja Trinity XAU has been updated to version 1.48 and was published on the MQL5 Market after passing validation on July 29, 2026.

The EA remains designed for MetaTrader 5 and XAUUSD M5. It does not use grid trading, martingale or averaging-down recovery. Version 1.48 focuses on internal adaptation, simpler operation, faster testing and safer state recovery.

Independent virtual performance memory

The main technical addition is an independent virtual-performance engine for the internal strategies labeled A through N.

Using completed M5 bars, this engine records how each strategy would have performed without sending any orders to the trading account. It maintains three evaluation windows:

  • 3 weeks for recent behavior;

  • 9 weeks for medium-term behavior;

  • 18 weeks for broader context.

This gives the adaptive-control layer several time horizons instead of relying on only one recent sample.

The virtual engine is separated from the real-order path. It does not open, modify or close trades. The real-order execution path previously tested in v1.47 has been preserved separately.

Multi-regime control

Version 1.48 classifies the current environment into six internal regimes:

  • Range;

  • Bull Trend;

  • Bear Trend;

  • Breakout;

  • Transition;

  • Volatility Shock.

A regime change requires confirmation from three completed bars, and the management state is refreshed every 60 seconds. This is intended to reduce unstable switching when the market briefly moves between two conditions.

The objective is not to predict every change in gold. The purpose is to give the EA a more structured way to combine recent strategy behavior with the current market environment.

Four Operation Modes

The update expands position-sizing control to four modes:

  • Operation_Mode=0: Fixed Lot;

  • Operation_Mode=1: Conservative 0.60x — the new default;

  • Operation_Mode=2: Balanced 1.00x;

  • Operation_Mode=3: Aggressive 1.25x.

FixedLot_Lots is used only in Fixed Lot mode. The 0.60x, 1.00x and 1.25x values are relative risk scales inside the EA; they are not profit or drawdown targets.

Only two inputs are visible:

  • Operation_Mode;

  • FixedLot_Lots.

A collapsible Capital & Lot Guide has also been added to the chart panel so that the main operating choices can be reviewed without exposing the protected internal strategy parameters.

Important SET compatibility warning

Existing v1.47 SET files are not mode-number compatible with v1.48.

In v1.47, Operation_Mode=1 selected the original automatic risk-based mode. The equivalent risk scale in v1.48 is:

Operation_Mode=2 — Balanced 1.00x

Operation_Mode=1 now selects Conservative 0.60x and is also the new default.

After updating, remove and reattach the EA or apply the new settings again. Before enabling AutoTrading, confirm both Operation_Mode and FixedLot_Lots. Do not assume that an old SET file will preserve the intended mode.

Tester speed and restart recovery

The virtual history can now be cached, restored and resumed instead of being rebuilt from the beginning every time. This improves Strategy Tester speed, especially when the EA needs to reconstruct longer 3/9/18-week evaluation windows.

Version 1.48 also restores two important live-operation states after a terminal or EA restart:

  • the number of trades already opened during the current day;

  • the equity high-water mark used by the portfolio protection logic.

These changes are intended to keep daily controls and drawdown management consistent across restarts.

Conservative-mode backtest reference

The following result is a MetaTrader 5 Strategy Tester reference for Conservative 0.60x:

  • Period: 2020.01.01 to 2026.07.21;

  • Symbol: XAUUSD custom symbol;

  • Timeframe: M5;

  • Model: Every Tick;

  • Data: imported Dukascopy tick data;

  • Initial deposit: 10,000 USD;

  • Leverage: 1:100;

  • History quality: 98%;

  • Total trades: 3,164;

  • Profit Factor: 2.77;

  • Maximum relative equity drawdown: 32.25%.

This is a historical backtest, not a live result. It used ideal zero-delay execution and zero commission. Broker costs, symbol specifications, spread, slippage and execution conditions can materially change the outcome.

A new public real-account Signal

I have also started a new MQL5 Signal named Ninja Trinity XAU Live.

It uses a dedicated real account of approximately 600 USD, XAUUSD M5, Operation_Mode=0 and FixedLot_Lots=0.01. Automatic compounding is disabled, and the account contains no manual trades or other EAs. The subscription price is 30 USD per month.

The Signal is new and does not yet have enough trading history for performance conclusions. It was started to build a public record of real orders, execution, slippage and drawdown over time.

Product CTA

Ninja Trinity XAU v1.48 is available on the MQL5 Market:

https://www.mql5.com/en/market/product/185737

Existing users should verify the two input values after updating. New users can use the free demo in the MT5 Strategy Tester and test the EA with their own broker's XAUUSD conditions before considering live use.

Risk notice

Backtest results are hypothetical and do not guarantee future performance. Live trading may differ because of spread, slippage, execution delay, commissions, swaps, liquidity, broker specifications and changing market conditions. XAUUSD can be highly volatile, and losses—including substantial drawdown or total loss of trading capital—are possible. Use only risk capital and choose a mode and lot size appropriate for your account.