Ai Luoyi Guardian
- Experts
- Version: 1.0
- Activations: 15
Ai Luoyi Guardian – Neural AI Gold Guardian for MT5 Ai Luoyi Guardian is a fully automated Expert Advisor for XAUUSD built around one idea: protect the account first, then let the AI find the trades. Instead of waiting for one indicator to cross a line, a deep-learning model reads the gold market as a sequence: every time a 15-minute candle closes, the AI estimates the probability of three outcomes (BUY, SELL or HOLD) and only acts when one of them clearly dominates. |
How the AI works
The model is embedded directly in the EA as an ONNX network. No DLLs, no external servers, no internet API.
- Trained on years of XAUUSD price history to recognise the market conditions that come before a clean move
- Output: BUY / HOLD / SELL probabilities on every new M15 candle
- A trade opens only when the leading probability passes a high-confidence threshold and is clearly ahead of the others
- HOLD is a valid decision. When the signal is weak or mixed, the EA stays out instead of forcing a trade
Risk management built in
- Every position opens with a hard Stop Loss and Take Profit. No open-ended trades
- Profit lock: once a trade moves into profit, the stop is pulled into the profit zone automatically
- Trailing stop that follows price as the move extends
- Maximum 5 positions at the same time
- Spread filter that blocks entries when the spread is abnormal
- News filter that pauses new entries around high-impact USD events, plus an extended pause around Non-Farm Payrolls
- Prop Firm Protection (optional, see below)
Prop Firm Protection
Built for funded-account challenges. When enabled, the EA stops itself before your account breaks a rule:
- Daily loss limit and total loss limit (default 5% / 10%). When a floor is reached, the EA's positions are closed and trading is locked
- Four drawdown modes to match your firm: Static, Trailing Balance, Trailing Equity, EOD Trailing
- Safety buffer (default 0.5%) that triggers before the firm's own limit
- Risk per trade (default 1%) and maximum open risk (default 2%): the lot is capped automatically from the stop-loss distance
- Strict loss calculation from the starting balance and a configurable daily reset hour (UTC)
- The lock state is saved, so restarting the terminal cannot reset the protection
- Applies only to this EA's symbol and magic number. Off by default
Key features
- No martingale, no grid, no averaging, no lot multiplication after losses
- Trades a focused session window
- Direction control: Buy & Sell / Only Buy / Only Sell
- Fixed lot or automatic lot sizing by balance (Low / Medium / High)
- Futuristic on-chart dashboard: live AI probabilities (BUY / HOLD / SELL), multi-timeframe Neural Scan, account, performance and risk statistics. It resizes automatically to any chart size and can be turned off
- Works with default settings. Attach it and let it run
Recommended setup
Symbol: XAUUSD (Gold)
Timeframe: M15
Minimum deposit: 500 USD
Leverage: 1:100 or higher
Account type: Hedging. ECN / Raw / low-spread accounts preferred
Broker UTC Offset: set to your broker's server offset from UTC (for example 2 or 3 for most GMT+2/+3 brokers)
VPS: recommended for 24/5 operation
Risk modes (automatic lot by balance)
Low (default): 0.01 lot per 500 USD - backtest max equity drawdown 16.1%
Medium: 0.02 lot per 500 USD - backtest max equity drawdown 32.7%
High: 0.03 lot per 500 USD - backtest max equity drawdown 40.2%
Backtest: XAUUSD M15, January 2025 - November 2026, 1,000 USD start, same trades in all three modes.
Start with Low mode and run the EA on a demo account first to see how it behaves with your broker.
Important to know
Automatic lot sizing compounds: as the balance grows, the lot grows with it, and so do the profits and the drawdowns in money terms.
Results in the Strategy Tester depend on tick quality, spread and commission. For the most realistic backtest, use "Every tick based on real ticks". The news filter uses the MT5 economic calendar, which is not available in the Strategy Tester, so backtests run without it.
Disclaimer
Trading foreign exchange and CFDs on margin carries a high level of risk and may not be suitable for every investor. Past performance, whether backtested or live, does not guarantee future results. This EA is a trading tool, not financial advice. You are responsible for your own settings, risk level and trading decisions. Only trade with money you can afford to lose.
