🔢 GOLDTradingSystemAI EA MT5 – Complete Inputs & Settings Guide
GOLDTradingSystemAI EA is a specialized MetaTrader 5 Expert Advisor focused on automated XAUUSD (Gold) trading. Its configuration combines higher-timeframe trend analysis, short-term pullback detection, Stochastic confirmation, EMA structure, ATR-based risk controls, and dynamic profit management.
The Inputs also provide position-sizing controls, spread and slippage protection, trading-session restrictions, and diagnostic logging. The published product description similarly presents the system as an XAUUSD strategy combining higher-timeframe trend direction with short-term pullbacks and momentum confirmation.

🔢 General Settings
🔹 MagicNumber = 2609127001 — Assigns 2609127001 as the unique identifier used to distinguish trades opened by the EA.
🔹 CommentPrefix = QuAI_GOLD_One_MT5 — Sets QuAI_GOLD_One_MT5 as the order-comment prefix attached to EA-generated trades.
🔹 DiagnosticsFileName = QuAI_GOLD_One_MT5.csv — Defines QuAI_GOLD_One_MT5.csv as the filename used for diagnostic data or event logging.
🔹 CanonicalGoldSymbol = XAUUSD — Defines XAUUSD as the canonical Gold symbol used by the EA.
🔹 optional only; suffix not required = [blank] — Indicates that an optional broker-specific symbol suffix may be supported, while no suffix is specified in the supplied configuration.
🔹 EnableCompounding = true — Enables the compounding function so position sizing can adapt according to the configured equity-based profile.
🔹 ReferenceEquity = 3000.0 — Sets the reference equity level to 3000.0, which serves as the baseline for the validated position-sizing profile.
🔹 Default validated profile = 0.07 — Sets the default validated profile value to 0.07 for the EA's internal sizing or configuration framework.
🔹 MaxLot = 10.0 — Limits the maximum calculated trading volume to 10.0 lots.
🔢 Execution & Market Protection
🔹 MaxDeviationPoints = 80 — Sets the maximum permitted execution deviation to 80 points.
🔹 MaxSpreadUSD = 1.0 — Limits the permitted spread to 1.0 USD according to the EA's spread calculation.
🔹 UseSessionFilter = true — Enables the trading-session filter.
🔹 SessionStartHour = 8 — Sets the beginning of the permitted trading session at hour 8.
🔹 SessionEndHour = 21 — Sets the end of the permitted trading session at hour 21.
🔢 Trend Analysis
🔹 TrendFastEMA = 20 — Uses a 20-period EMA as the fast trend reference.
🔹 TrendSlowEMA = 50 — Uses a 50-period EMA as the slow trend reference.
🔹 TrendSlopeLookback = 2 — Uses a 2-bar lookback period to evaluate the EMA trend slope.
🔢 Stochastic Momentum Filter
🔹 StochK = 5 — Sets the Stochastic %K calculation period to 5.
🔹 StochD = 3 — Sets the Stochastic %D smoothing period to 3.
🔹 StochSlowing = 3 — Sets the Stochastic slowing parameter to 3.
🔹 ResetLookbackM15Bars = 2 — Uses 2 M15 bars as the lookback period for the Stochastic reset condition.
🔹 BuyResetLevel = 35.0 — Sets the bullish reset threshold at 35.0.
🔹 SellResetLevel = 65.0 — Sets the bearish reset threshold at 65.0.
🔹 BuyMaxEntryStoch = 65.0 — Prevents qualifying Buy entries when the relevant Stochastic value exceeds 65.0.
🔹 SellMinEntryStoch = 35.0 — Prevents qualifying Sell entries when the relevant Stochastic value falls below 35.0.
🔢 Pullback Entry Logic
🔹 M5PullbackEMA = 20 — Uses a 20-period EMA as the M5 pullback reference.
🔹 PullbackLookbackM5Bars = 4 — Searches the previous 4 M5 bars for the required pullback structure.
🔹 PullbackTouchATR = 0.3 — Defines a pullback-touch tolerance of 0.3 ATR around the relevant EMA/reference area.
🔹 MinTriggerBodyFraction = 0.4 — Requires the trigger candle body to represent at least 0.4 of the relevant candle range.
🔹 MinTriggerCloseLocation = 0.65 — Requires the trigger candle's close location to meet a minimum threshold of 0.65 within its range.
🔹 MaxTriggerRangeATR = 1.8 — Limits the trigger candle range to a maximum of 1.8 ATR, helping prevent excessively large trigger candles from qualifying.
🔢 ATR & Stop Loss Management
🔹 ATRPeriod = 14 — Sets the ATR calculation period to 14.
🔹 SLBufferATR = 0.15 — Adds a Stop Loss buffer of 0.15 ATR beyond the relevant structural level.
🔹 MinSL_ATR = 0.8 — Sets the minimum Stop Loss distance to 0.8 ATR.
🔹 MaxSL_ATR = 3.0 — Sets the maximum Stop Loss distance to 3.0 ATR.
🔢 Profit & Position Management
🔹 FinalTP_R = 1.5 — Sets the final Take Profit target at 1.5R, where R represents the initial trade risk.
🔹 BETriggerR = 0.5 — Activates the break-even mechanism when the position reaches 0.5R profit.
🔹 VirtualGateTP_R = 1.0 — Sets the virtual Take Profit gate at 1.0R for the EA's internal trade-management logic.
🔹 MinMinutesAfterClose = 10 — Requires a minimum waiting period of 10 minutes after a position closes before another eligible trade can be processed.
🔹 PrintEvents = true — Enables event logging so relevant EA actions and trading events are printed for monitoring and diagnostics.
🔢 Strategy Configuration Summary
🔹 Gold Market Focus — CanonicalGoldSymbol = XAUUSD establishes XAUUSD as the primary instrument for the system.
🔹 Compounding — EnableCompounding = true enables the configured compounding mechanism, with ReferenceEquity = 3000.0 serving as the reference equity value.
🔹 Trend Structure — The EA uses TrendFastEMA = 20, TrendSlowEMA = 50, and TrendSlopeLookback = 2 to evaluate trend direction and slope.
🔹 Momentum Confirmation — The Stochastic configuration uses K = 5, D = 3, and Slowing = 3, with entry boundaries controlled by 35.0 and 65.0 levels.
🔹 Pullback Detection — The M5 pullback engine uses a 20-period EMA, 4-bar lookback, and 0.3 ATR touch distance.
🔹 Risk-Based Stops — ATR 14, minimum SL 0.8 ATR, maximum SL 3.0 ATR, and an additional 0.15 ATR buffer create a volatility-adjusted Stop Loss structure.
🔹 Profit Management — The configuration targets 1.5R final profit, triggers break-even at 0.5R, and uses a 1.0R virtual Take Profit gate.
🔹 Trading Hours — The session filter is enabled from hour 8 through hour 21.
🔹 Execution Protection — Maximum deviation is 80 points, while maximum spread is limited to 1.0 USD.
🔢 Conclusion
GOLDTradingSystemAI EA MT5 provides a compact but highly structured configuration for automated XAUUSD trading. The system combines 20/50 EMA trend analysis, EMA slope confirmation, Stochastic momentum filtering, M5 pullback detection, and ATR-based Stop Loss calculations to create a multi-layer entry and risk-management framework.
The supplied configuration uses EnableCompounding = true, a ReferenceEquity of 3000.0, and a maximum lot ceiling of 10.0. Trade protection is supported by MaxDeviationPoints = 80, MaxSpreadUSD = 1.0, and an active trading session from 8 to 21.
For position management, the EA uses a 0.8 ATR minimum SL, 3.0 ATR maximum SL, 0.15 ATR SL buffer, 1.5R final Take Profit, 0.5R break-even trigger, and 1.0R virtual TP gate. The public product description also emphasizes structural Stop Loss, dynamic risk management, and profit protection once trades move favorably.
Overall, the Inputs show a system designed around trend + pullback + momentum confirmation, with volatility-adjusted risk controls and clearly defined execution parameters.










