The Devi Gold is a multi-stage Gold (XAUUSD) Expert Advisor for MT5. Every potential trade passes through several filtering and confirmation stages. It uses closed candles only, with no repainting. This page is the Input & Setup Guide for The Devi Gold.
Recommended Setup
- Symbol: XAUUSD or your broker’s Gold symbol (e.g., GOLD.i, XAUUSD.m).
- Timeframe: Any chart timeframe. The strategy uses its own internal timeframe.
- Minimum Balance: $1,000. The risk manager needs this to calculate correct lot sizes.
- Leverage: 1:500 or above recommended.
- Account Type: ECN/Raw or Standard with tight Gold spreads.
- VPS: Recommended.
Money Management / Lot Sizing
- InpLotMode: Chooses between a fixed lot and risk-based automatic lot sizing. (Confirm which value means which: the test used 1.)
- InpFixedLot: Lot size per trade when fixed-lot mode is selected (default 0.01). It must meet your broker’s minimum, maximum and volume-step rules.
- InpRiskProfile: Selects the risk preset. Lot size scales automatically with your balance.
- Ultra Low: 1% of balance
- Low: 2% of balance
- Medium: 5% of balance
- High: 8% of balance
- Ultra High: 10% of balance
- Custom: uses InpCustomRiskPercent
- InpCustomRiskPercent: Your own risk percentage per trade. It applies only when the profile is set to Custom.
- InpMaxPositions: Maximum number of positions open at the same time.
Note: Start with a low risk profile and test on a demo account first. Higher profiles increase both potential profit and potential drawdown.
Account Protection
- InpMaxDailyLossPct: Stops new trading for the day once the daily loss reaches this percentage. A value of 0.0 turns the limit off.
- InpMaxConsecLosses: Number of consecutive losing trades that triggers a pause.
- InpPauseHours: How long (in hours) new trading is paused after the loss-streak limit is hit.
Note: These limits block new entries. Gaps, slippage and spreads can still affect the realised result of positions that are already open.
Trading Days Filter
- InpNoFridayEntries: True blocks new entries on Fridays.
- InpNoUSHolidayEntries: True blocks new entries on US holidays.
Dashboard Settings
- InpShowDashboard: Shows or hides the on-chart dashboard. Hiding it does not stop trading.
- InpDashCorner: Chooses which chart corner the dashboard appears in.
- InpDashTheme: Chooses the dashboard colour theme.
The dashboard shows live balance and equity, floating P/L, today’s P/L, monthly profit, current risk profile and lot size, open positions (Buy/Sell) and a Live Status line explaining why the EA is or isn’t trading.
Settings Used in the Published Backtest
- Symbol/Period: GOLD.i, M5, 1 Jan – 14 Nov 2026, 100% real ticks
- Deposit: $1,000, leverage 1:500
- InpMaxPositions = 2, InpMaxConsecLosses = 2, InpPauseHours = 12
- InpMaxDailyLossPct = 0.0 (daily loss limit off), Friday and US-holiday filters off
Risk Warning: Gold is volatile and every automated strategy can experience drawdowns. Backtest results do not guarantee future performance. Trade only with money you can afford to lose.


