🔢 XG Gold Robot MT5 Settings Guide – Complete Parameter Explanation
XG Gold Robot MT5 is a professional automated Gold trading Expert Advisor developed for GOLD, XAUUSD and XAUEUR. It combines intelligent money management, configurable order management, trailing stop protection, recovery mode, trading session scheduling, economic news filtering and spread protection.
With flexible risk profiles and customizable trading parameters, the EA is designed to adapt to various market conditions while maintaining disciplined risk control and execution quality.
🔢 Installation Panel Parameters
Below are the details of the parameters in the advisor’s trading system settings table:
🔄 General Settings
🔹 Pending = true – Enables the use of pending orders for trade execution.
🔹 Trading = GOLD, XAUUSD, XAUEUR – Specifies that the EA supports trading on GOLD, XAUUSD, and XAUEUR.
🔹 FIFO = false – Disables FIFO (First In, First Out) trade management restrictions.
🔹 FixedLot = 0.0 – Fixed lot mode is disabled because the value is 0.0.
🔹 RiskPercent = 10 – Uses 10% account risk per trade when percentage-based money management is active.
🔹 TradeComment = XG GOLD – Adds the custom trade comment "XG GOLD" to every order.
🔹 MagicNumber = 344777 – Unique identifier assigned to all trades opened by XG Gold Robot MT5.
🔹 Panel = true – Displays the EA information panel on the chart.
🔹 GoldWeeklyLevels = true – Enables the display and use of weekly Gold support and resistance levels.
🔹 System = true – Activates the EA's primary trading system.
🔹 CustomComment = ADT – Adds the custom label "ADT" for trade identification.
🔹 TradeDirection = BuyAndSell – Allows the EA to open both Buy and Sell positions.
🔄 Orders Parameters
🔹 SelectRisk = Medium – Uses the predefined Medium risk profile.
🔹 OrdersStep = 50.0 – Sets the distance between grid or sequential orders to 50.0 points.
🔹 OrdersProfit = 70.0 – Sets the basket or order profit target to 70.0 points.
🔹 TrailingStopStart = 0.0 – Trailing Stop activation is disabled because the value is 0.0.
🔹 TrailingStopStep = 0.0 – Trailing Stop update step is disabled.
🔹 FixedTotalSLTP (Medium/High) = false – Disables fixed total Stop Loss and Take Profit management.
🔄 Stop Loss & Take Profit Parameters
🔹 TakeProfit = 50.0 – Sets the Take Profit target to 50.0 points.
🔹 StopLoss = 50.0 – Sets the Stop Loss distance to 50.0 points.
🔹 Stop Loss % = 100.0 – Allows Stop Loss management based on 100.0% of the configured value.
🔹 Stop at Profit (% of OrdersProfit) = 0.0 – Profit-based early stopping is disabled because the value is 0.0.
🔹 DisableAfterLoss = false – The EA continues trading after a losing trade.
🔄 Trading Hours
🔹 Trading24h = false – The EA trades only during the configured trading sessions.
🔹 Monday = true – Trading is enabled on Monday.
🔹 MondayStartTime = 08:00 – Trading begins at 08:00 on Monday.
🔹 MondayEndTime = 22:00 – Trading ends at 22:00 on Monday.
🔹 Tuesday = true – Trading is enabled on Tuesday.
🔹 TuesdayStartTime = 08:00 – Trading begins at 08:00 on Tuesday.
🔹 TuesdayEndTime = 22:00 – Trading ends at 22:00 on Tuesday.
🔹 Wednesday = true – Trading is enabled on Wednesday.
🔹 WednesdayStartTime = 08:00 – Trading begins at 08:00 on Wednesday.
🔹 WednesdayEndTime = 22:00 – Trading ends at 22:00 on Wednesday.
🔹 Thursday = true – Trading is enabled on Thursday.
🔹 ThursdayStartTime = 08:00 – Trading begins at 08:00 on Thursday.
🔹 ThursdayEndTime = 22:00 – Trading ends at 22:00 on Thursday.
🔹 Friday = true – Trading is enabled on Friday.
🔹 FridayStartTime = 08:00 – Trading begins at 08:00 on Friday.
🔹 FridayEndTime = 20:00 – Trading ends at 20:00 on Friday.
🔄 News Filter Parameters
🔹 NewsFilter = true – Enables the built-in economic news filter.
🔹 doNotTradeBeforeInMinutes = 60 – Stops opening new trades 60 minutes before scheduled news events.
🔹 doNotTradeAfterInMinutes = 60 – Resumes trading 60 minutes after scheduled news events.
🔹 Report for USD = true – Monitors important USD economic events.
🔹 Report for EUR = true – Monitors important EUR economic events.
🔹 AllowTradingOnHolidays = false – Trading is disabled during recognized market holidays.
🔹 FindKeyword = false – Keyword-based news filtering is disabled.
🔹 FindKeywordsList = ECB, FOMC, Fed, Federal Funds Rate, Non-Farm – Defines the important news events monitored by the EA.
🔹 StopLoss Important News (% of Balance) = 100.0 – Uses 100.0% of the configured Stop Loss rule during important news events.
🔹 Stop at Profit Important News (% of OrdersProfit) = 0.0 – Profit-based closing during important news events is disabled.
🔄 Closing Orders
🔹 Closing All Orders = false – The EA does not automatically close all positions at the configured closing time.
🔹 Closing Time = 22:00 – Defines 22:00 as the scheduled closing time for applicable functions.
🔄 Trade Parameters
🔹 MaxSpread = 50.0 – Prevents new trades whenever the spread exceeds 50.0 points.
🔹 Lots = 0.05 – Uses a default fixed trading volume of 0.05 lots.
🔹 LotsStep = 0.01 – Increases trading volume in increments of 0.01 lots.
🔹 RecoveryMode [for Low Risk] = false – Disables the built-in recovery trading mode.
🔹 RecoveryMultiplier = 1.59 – Uses a recovery multiplier of 1.59 when Recovery Mode is enabled.
🔹 RecoveryMaxCycle = 3 – Limits recovery trading to a maximum of 3 cycles.
🔹 Slippage = 50.0 – Allows a maximum execution slippage of 50.0 points.
🔹 MagicNo = 227888 – Secondary Magic Number used by additional EA functions or recovery logic.
🔢 Conclusion
XG Gold Robot MT5 provides a comprehensive automated trading solution for Gold traders by combining intelligent risk management, pending order execution, flexible trading schedules, integrated news protection, recovery controls and configurable order management.
With support for multiple Gold-related symbols, customizable trading sessions, and built-in execution safeguards, the EA offers traders a balanced framework for disciplined automated trading across different market conditions.
🔢 FAQs
❓ What trading instruments does XG Gold Robot MT5 support?
The EA is configured to trade GOLD, XAUUSD, and XAUEUR, allowing flexibility across multiple Gold instruments.
❓ How does the News Filter protect trades?
With NewsFilter = true, the EA pauses trading 60 minutes before and 60 minutes after important economic events related to USD and EUR, including ECB, FOMC, Federal Funds Rate, and Non-Farm Payroll announcements.
❓ What is the purpose of the Recovery Mode settings?
The Recovery Mode parameters (RecoveryMultiplier = 1.59 and RecoveryMaxCycle = 3) define how the EA would manage recovery trades if the feature is enabled. In the current configuration, RecoveryMode = false, so this logic is inactive.
❓ Why are there two Magic Numbers?
The EA uses MagicNumber = 344777 as the primary trade identifier, while MagicNo = 227888 may be reserved for secondary trading functions, recovery management, or internal order tracking.
❓ Can I restrict trading to specific hours?
Yes. Since Trading24h = false, the EA follows the configured daily trading schedule, operating from 08:00–22:00 Monday through Thursday and 08:00–20:00 on Friday.










