🔢 XAU Momentum EA MT5 Settings Guide
XAU Momentum EA is a professional automated trading system developed specifically for XAUUSD (Gold). The Expert Advisor combines momentum-based entries, intelligent money management, ATR-driven lot scaling, advanced grid management, economic news filtering, drawdown protection, prop firm compatibility and flexible risk controls.
With extensive customization options, traders can fine-tune every aspect of execution, position sizing, trade filtering, and safety management to match different trading styles and account types.

🔢 XAU Momentum EA MT5 Settings Explained
🔹 Load the EA on a XAUUSD chart (timeframe is irrelevant) – Install the EA on a XAUUSD chart; it works independently of the selected timeframe.
🔹 Adjust the input called |AutoLot level| to set your risk – Controls overall trading risk through the AutoLot system.
🔹 Contact via DM on MQL5.com if you have any questions – Developer support instruction.
🔶 Inputs
🔹 Allow entry without signals if DualMA aligned = false – Requires normal entry conditions; Dual MA alignment alone cannot trigger trades.
🔶 General Inputs
🔹 Enable spread filter = false – Disables spread filtering before opening trades.
🔹 Max spread in points for entry = 400.0 – Maximum acceptable spread is 400.0 points if the spread filter is enabled.
🔹 EA comment = Xau Momentum – Order comment attached to every position.
🔹 Hide Entry Model Comments = false – Displays entry model comments on trades.
🔹 EA magic number = 36353534 – Unique identifier used by the EA to manage its own positions.
🔹 Allow buy positions = true – Enables Buy trades.
🔹 Allow sell positions = true – Enables Sell trades.
🔹 Allow Hedging (set to false to comply with FIFO requirements) = true – Allows simultaneous Buy and Sell positions.
🔹 Set file used = Xau Momentum Default – Loads the default configuration profile.
🔶 Debug Print Settings
🔹 Time frame for printing debug = 1 Hour – Debug information is generated using the H1 timeframe.
🔹 Show array debug prints = false – Disables array debugging.
🔹 Show Range Entry Print Statements = false – Disables range entry logs.
🔹 Show ATR calculation debug prints = false – Disables ATR calculation logs.
🔹 Show lot multiplier ATR debug prints = false – Disables ATR lot multiplier debugging.
🔹 Show TP calculation debug prints = false – Disables Take Profit calculation logs.
🔹 Show grid debug prints in journal = false – Disables Grid system logs.
🔹 Show Stop Loss Debug Prints = false – Disables Stop Loss logging.
🔹 Show Price Action debug prints = false – Disables Price Action diagnostics.
🔹 Show emergency stop out debug prints in journal = false – Disables emergency protection logs.
🔹 Print currency checks in journal? = false – Disables currency validation logging.
🔹 Print new entry attempts in journal? = false – Disables entry attempt logs.
🔶 Money Management
🔹 Maximum positions per currency in same direction across account = 1 – Allows only one position per currency in the same direction.
🔹 Close grid on opposite signal? = false – Existing grid remains open after an opposite signal.
AutoLot Recommendations
🔹 AutoLot 0.1 = Low Risk (7–15% p.a.) – Minimum Balance 10K – Conservative profile.
🔹 AutoLot 0.3 = Moderate Risk (10–25% p.a.) – Minimum Balance 7K – Moderate profile.
🔹 AutoLot 0.5 = High Risk (40–100% p.a.) – Minimum Balance 5K – High-risk profile.
🔹 AutoLot 1 = Aggressive Risk (80–120% p.a.) – Minimum Balance 1K – Aggressive profile.
🔹 AutoLot 1.5 = Degen Risk (100–200% p.a.) – Minimum Balance 1K – Very aggressive profile.
🔹 AutoLot > 1.5 = YOLO (150–300% p.a.) – Minimum Balance 1K – Extremely aggressive profile.
🔹 Recommended leverage = 1:500 or higher – Higher leverage is recommended.
🔹 Cent account recommendation – Suggested when account balance is below the recommended level.
🔹 Trading is risky. Trade at your own risk – Standard risk disclaimer.
🔶 Starting Lot Settings
🔹 Risk Model = AutoLot – Uses automatic lot calculation.
🔹 Starting lot (if AutoLot is not used) = 0.01 – Fixed starting lot.
🔹 AutoLot level (1 = 0.01 lots per 1000 account balance) = 1.0 – Auto lot scaling level.
🔶 Safety Settings
Stop Loss
🔹 Enable stop loss = false – Stop Loss protection is disabled.
🔹 Stop loss at percentage or money drawdown = PercentageDD – Uses percentage drawdown.
🔹 Drawdown money for stop loss = 100.0 – Money threshold.
🔹 Drawdown percentage for stop loss = 50.0 – Maximum drawdown before protection activates.
Emergency Stop Out Protection
🔹 Enable emergency stop out protection = true – Enables emergency account protection.
🔹 Margin cushion above broker stop out (%) = 10.0 – Maintains a 10% safety buffer.
🔹 Check interval in seconds = 60 – Checks every 60 seconds.
🔹 Set to 0 to disable, or 1–2 for aggressive = 5 – Emergency sensitivity level.
Drawdown Alerts
🔹 Enable drawdown alerts = true – Activates account drawdown notifications.
🔹 Maximum allowed drawdown percentage = 15.0 – Alert threshold.
🔹 Alert interval in minutes = 15 – Sends alerts every 15 minutes.
🔶 Prop Firm Settings
Prop Firm Compliance
🔹 Enable random time delay for entries = false – No randomized execution delay.
🔹 Maximum delay in milliseconds (0–1000) = 30 – Maximum delay setting.
Prop Firm – Stop EA At Win
🔹 Enable prop firm challenge win = false – Automatic challenge stop disabled.
🔹 Close positions and stop trading at this equity = 110025 – Stops after reaching this equity target.
🔶 Info Panel Settings
🔹 Show info panel = false – Information panel disabled.
🔹 Number of days to calculate trading statistics = 600 – Uses 600 trading days.
🔹 Panel X position = 110 – Horizontal position.
🔹 Panel Y position = 20 – Vertical position.
🔹 Space between header and first text line = 50 – Header spacing.
🔹 Space between labels and values = 320 – Column spacing.
🔹 Width of black background = 450 – Panel width.
🔹 Height of black background = 560 – Panel height.
🔹 Short retry interval when market is closed = 15 – Retry interval.
🔶 News Filter Settings
🔹 Allow trading on NFP days = false – Blocks trading on Non-Farm Payroll days.
🔹 Enable news filter (for initial positions) = false – Initial news filter disabled.
🔹 Filter only selected news = true – Uses only selected news events.
🔹 Disable grid positions during news events = false – Grid continues during news.
🔹 Number of days to load = 5 – Loads 5 days of calendar data.
🔹 Print news info in journal = false – News logs disabled.
🔹 Minutes before unselected news to stop trading = 240 – Stops 240 minutes before.
🔹 Minutes after unselected news to start trading = 120 – Resumes after 120 minutes.
🔹 Minutes before selected news to stop trading = 600 – Stops 600 minutes before.
🔹 Minutes after selected news to start trading = 5 – Resumes after 5 minutes.
🔹 Minutes before to stop grid = 60 – Grid pause before news.
🔹 Minutes after to start grid = 60 – Grid resumes after news.
Selected News Events
🔹 Select NFP (Non-Farm Payrolls) = true – Enabled.
🔹 Select CPI (Consumer Price Index) = true – Enabled.
🔹 Select FOMC Meetings/Statements = true – Enabled.
🔹 Select PPI (Producer Price Index) = true – Enabled.
🔹 Select Retail Sales = true – Enabled.
🔹 Select GDP = true – Enabled.
🔹 Select Fed Interest Rate Decision = true – Enabled.
🔹 Select Unemployment Rate = true – Enabled.
🔹 Select Initial Jobless Claims = true – Enabled.
🔹 Select Average Hourly Earnings = true – Enabled.
🔹 Select PMI = true – Enabled.
🔹 Select JOLTS Job Openings = true – Enabled.
🔹 Select Fed Chair Speaks = true – Enabled.
🔹 Select ECB President Speaks = true – Enabled.
🔹 Select ECB Press Conference = true – Enabled.
🔹 Select ECB Interest Rate Decision = true – Enabled.
🔶 Time Settings
🔹 Trade on Monday = true – Monday trading enabled.
🔹 Trade on Tuesday = true – Tuesday trading enabled.
🔹 Trade on Wednesday = true – Wednesday trading enabled.
🔹 Trade on Thursday = true – Thursday trading enabled.
🔹 Trade on Friday = true – Friday trading enabled.
🔹 Using Trade Hour = true – Trading hours enabled.
🔹 Start Hour (Tuesday to Friday) = 3 – Trading starts at 03:00.
🔹 Last Hour (Monday to Thursday) = 20 – Stops at 20:00.
🔹 Start Hour (Monday) = 3 – Monday starts at 03:00.
🔹 Last Hour (Friday) = 12 – Friday stops at 12:00.
🔶 Close End Of Day
🔹 Close positions at hour = false – End-of-day closing disabled.
🔹 Hour to close all positions = 23 – Closing hour if enabled.
🔶 Christmas Holiday Filter
🔹 Enable Christmas Holiday Filter = true – Holiday filter enabled.
🔹 First Trading Day (DD.MM) = 02.01 – Trading resumes on 02.01.
🔹 Last Trading Day (DD.MM) = 23.12 – Trading ends on 23.12.
🔶 Lot Multiplier Settings
Linear Lot Multiplier
🔹 Only increase lot at full distance intervals = false – Continuous lot adjustments.
🔹 Use ATR-based distance instead of static pips = true – Uses ATR for spacing.
🔹 Pips distance for lot increase = 5.0 – Static spacing.
🔹 Lot amount to increase per distance = 0.01 – Increment size.
ATR Settings
🔹 ATR timeframe for lot multiplier = 1 Day – Uses Daily ATR.
🔹 ATR period for lot multiplier = 2 – ATR period.
🔹 ATR multiplier = 0.2 – Multiplier value.
Rolling Volatility
🔹 Rolling Volatility Window (hours) = 7 – Seven-hour rolling calculation.
🔹 Rolling Vol Weight % = 80 – Uses 80% rolling volatility.
Position Count Modifier
🔹 Enable position count modifier = true – Dynamic lot adjustment enabled.
🔹 Positions per modifier step = 3 – Adjustment interval.
🔹 Change per step = 0.5 – Multiplier increment.
🔹 Floor multiplier = 0.5 – Minimum multiplier.
🔹 Ceiling multiplier = 5.0 – Maximum multiplier.
Max Lot Size
🔹 Max Lot per 1K balance = 1.0 – Caps lot size.
🔹 FixedLot final size = AutoLot base size × AutoLot level = MaxLot – Final lot calculation formula.
🔶 Take Profit Settings
🔹 Money Target per 0.01 starting lot = 5.0 – Profit target equals $5 per 0.01 lot.
🔹 Commission per lot = 7.0 – Commission assumption.
🔹 Auto-detect commission from broker history = true – Reads historical commissions automatically.
🔶 Commission Cost Settings
🔹 Include commission costs in TP calculation = true – Includes commissions in Take Profit.
🔶 Swap Cost Settings
🔹 Include swap costs in TP calculation = true – Includes overnight swap.
🔹 Broker swap charging method = Full swap on open position at rollover – Swap model.
🔶 Grid Settings
🔹 Enable Grid = true – Grid trading enabled.
🔹 Minimum minutes between grid positions = 5 – Five-minute spacing.
🔹 Apply timer between initial entry and first grid = true – Timer enabled.
🔹 SL in pips (only used if grid disabled) = 20.0 – Stop Loss for non-grid mode.
🔹 Max number of positions in a grid = 100 – Maximum grid positions.
🔹 Use max available margin when insufficient for calculated lot = true – Uses available margin.
🔶 High/Low Settings
🔹 Bars on each side of highest high/lowest low = 8 – Swing confirmation bars.
🔹 Amount of bars in array to scan for highs/lows = 95 – Historical lookback length.
🔢 Conclusion
XAU Momentum EA MT5 offers a highly configurable automated Gold trading framework with advanced AutoLot sizing, adaptive ATR-based position scaling, sophisticated grid management, comprehensive economic news protection, prop firm compliance tools, emergency account protection, and extensive risk controls. Its wide range of parameters allows both conservative and aggressive traders to tailor the EA precisely to their preferred trading style while maintaining strong capital protection.
🔢 FAQs
❓ Which market is XAU Momentum EA MT5 designed for?
XAU Momentum EA MT5 is specifically designed for automated trading on XAUUSD (Gold).
❓ Does the EA support automatic lot sizing?
Yes. It includes an AutoLot system with multiple risk profiles ranging from conservative to aggressive.
❓ Can XAU Momentum EA MT5 trade during economic news?
Yes. It includes a configurable news filter that allows traders to select which economic events should pause trading.
❓ Does the EA include grid trading?
Yes. The EA features an advanced Grid Trading system with ATR-based lot scaling, position timing, and customizable maximum grid positions.
❓ Is XAU Momentum EA MT5 suitable for prop firm accounts?
Yes. It includes dedicated prop firm settings, drawdown protection, emergency stop-out safeguards, and configurable equity targets to help traders manage funded account requirements.









