Gold Capital Guardian
- Experts
- Version: 1.0
- Activations: 20
Gold Capital Guardian is an institutional-grade Expert Advisor specifically engineered for the high-volatility environment of Gold (XAUUSD). It incorporates state-of-the-art anti-broker manipulation defenses and dynamic risk constraints based on advanced MQL5 architectural blueprints.
By treating the market as a hostile environment, Gold Capital Guardian deploys intelligent grid scaling, stealth trading tactics, and multi-layered equity protection to secure consistent profits while safeguarding your capital.
Key Advantages
- Virtual Stop Loss & Take Profit: Never send SL/TP to the broker's server where they can be hunted. Gold Capital Guardian manages exits locally, closing positions via market orders when local price breaches virtual levels.
- Order Randomization: Introduces slight randomization to lot sizes and execution delays. This prevents algorithms from easily profiling, fingerprinting, and countering the specific trading grid pattern.
- HMR Detection: Automatically detects when brokers increase margin requirements (common during weekends, elections, or crises) by monitoring initial margin, freezing grid expansion to protect free margin before a margin call occurs.
- Execution Quality Monitoring: Capable of tracking asymmetric slippage, spread widening, and latency to determine execution edge.
- News Event Filter: Automatically pauses trading around high-impact economic events where spreads naturally widen.
Core Strategy Features
- Momentum & Trend Entry: Uses a combination of the 200 SMA and RSI to ensure the first trade of the basket is highly accurate.
- Dynamic Market Adaptation: The grid does not blindly add trades. It uses the Average True Range to dynamically space out entries during high volatility and utilizes the ADX indicator to completely freeze the grid during massive runway trends.
- Ironclad Risk Management: Features a hard equity killswitch, latency ping guards, and daily drawdown controllers to prevent grid blow-outs.
- Intelligent Scale-Out: Employs Tiered Partial Closes to secure portions of your profit early, reducing market exposure significantly faster than traditional all-or-nothing systems.
Input Parameters
Extreme Broker Defenses
- UseOrderRandomization: Randomize lot size & entry delay to avoid broker footprinting.
- RandomVariationPercent: Maximum lot size variation.
- MaxRandomDelayMs: Maximum delay before executing a trade.
- UseDOMSpoofDetector: Detects L2 Order Book Spoofing to avoid fake liquidity spikes.
Anti-Broker Manipulation Defenses
- UseStealthMode: Hides SL/TP from the broker, executing them virtually.
- UseHMRDetection: Detects margin spikes and freezes the grid to protect free margin.
- HMR_MultiplierThreshold: Multiplier threshold to trigger the margin spike defense.
- UsePingGuard: Blocks trades if broker connection latency is too high.
- MaxPingMs: Maximum allowed connection latency.
- UseHardEquityGuard: Hardcoded trailing Equity Killswitch based on a high-water mark.
- MaxTrailingDrawdownPercent: Max allowed drawdown from the peak high-water mark.
- AuditExecutionSlippage: Logs slippage and fill data to the journal for review.
Lot Sizing & Money Management
- LotMultiplier: Multiplier for grid recovery trades.
- MaxLotCap: Maximum allowed lot size for a single trade.
- MMType: Money Management mode.
- LotConst_or_not: Choose between Fixed Lot or Auto-Lot.
- Lot: Starting Fixed Lot size.
- RiskPercent: Percentage of balance to risk if Auto-Lot is enabled.
Grid & Take Profit
- TakeProfit: Target Take Profit.
- Step: Minimum distance between grid orders.
- UseDynamicStep: Uses ATR to dynamically increase the grid step during high volatility.
- ATR_Period: Period for the ATR indicator.
- MaxTrades: Maximum number of open trades allowed in a basket.
- UseADXFilter: Freezes grid expansion if ADX indicates a strong, runaway trend.
- ADX_Period: Period for the ADX indicator.
- ADX_Threshold: ADX value above which the grid is frozen.
- UseTPCompression: Dynamically shrinks the Take Profit target as the basket size grows.
- CompressionTrades: Number of trades at which TP compression begins.
- CompressionFactor: The factor by which TP is reduced.
Entry & Scalping Filters
- UseTrendFilter: Filters initial entries in the direction of the 200 SMA.
- TrendFilter_Period: Period for the SMA Trend filter.
- MaxSpread: Maximum allowed spread in points to open a trade.
- RSI_Period / RSI_Upper / RSI_Lower: Parameters for the RSI momentum entry trigger.
Stop Loss & Protection
- UseEquityStop: Triggers a hard stop out based on total equity drawdown.
- TotalEquityRisk: Maximum equity drawdown risk.
- BasketStopLoss: Fallback Stop Loss for the entire basket.
- MagicNumber: Unique identifier for the EA's trades.
Trading Session Hours
- ShowTableOnTesting: Displays the visual dashboard on the chart.
- Open_Hour / Close_Hour: Daily starting and ending hours for trading.
- TradeOnFriday / Friday_Hour: Friday trading permissions and cutoff hour.
Advanced Strategy & Risk Protector
- UseHighImpactNewsFilter: Pauses trading around High-Impact news events.
- NewsMinutesBefore / NewsMinutesAfter: Time buffer around news events.
- UseAdaptiveMultiplier: Reduces the lot multiplier as the basket grows to lower risk.
- AdaptiveDecayRate: Reduction rate per trade.
- UseMaxTradeDuration / MaxTradeDurationHours: Closes stuck trades after a set amount of time.
- UseEquityGrowthStop / EquityGrowthPercent: Closes all trades when equity increases by a specific target percentage.
- UseTieredPartialClose: Uses Scale-Out mechanics to secure partial profits at multiple tiers.
- Tier1_Points / Tier1_Percent: Target points and volume % to close for Tier 1.
- Tier2_Points / Tier2_Percent: Target points and volume % to close for Tier 2.
- UseDailyLossLimit / DailyLossLimit: Hard monetary stop if daily losses reach the limit.
- UseDailyProfitLimit / DailyProfitLimit: Hard monetary stop if daily profits reach the limit.
- UseDrawdownController / MaxDailyDrawdownPercent: Halts trading if daily drawdown percentage is breached.
