Golden Sundae: Automated Gold Trading Engine

Executive Summary

A low-capital quantitative trading system for Gold (XAUUSD) engineered to minimize drawdowns and maximize account survival. By running real-time, memory-persisted market simulations alongside technical safety nets, the system achieves strict capital preservation while maintaining robust profitability.

Core Problem

Retail algorithmic trading systems (Expert Advisors) typically rely on large account balances to absorb high margin calls and liquidity shocks. For smaller capital accounts, standard market volatility and unexpected broker or terminal crashes frequently lead to sudden liquidations and complete loss of strategy trade context.

Solution

In-Memory Strategy Simulation Engine

Persistent Memory-State Preservation

Multi-Layer Risk Safeguards & Regime Exits

Backtest Report

General Settings

SettingsValue
Period1 January 2025 - 31 July 2026
SymbolGOLD (XAUUSD)
CompanyXM Global Limited
Initial Deposit$1000 USD
Leverage1:500

Top KPI Summary

Performance MetricBacktest Result
Profit Factor2.08
Max Drawdown550.66 (20.69%)
Sharpe Ratio6.13
Tick Data Quality100%

Full Report

Initial Deposit1000.00
Total Net Profit3901.23Balance Drawdown Absolute75.70Equity Drawdown Absolute81.51
Gross Profit7446.88Balance Drawdown Maximal410.41Equity Drawdown Maximal550.66
Gross Loss-3545.65Balance Drawdown Relative16.14%Equity Drawdown Relative20.69%
Profit Factor2.10Expected Payoff9.73Margin Level4199.64%
Recovery Factor7.08Sharpe Ratio6.13Z-Score99.74%
AHPR0.41%LR Correlation0.99
GHPR0.40%LR Standard Error176.03
Total Trades401Short Trades (won %)0(0%)Long Trades (won %)401(50.87%)
Total Deals802Profit Trades (% of total)204(50.87%)Loss Trades (% of total)197(49.13%)
LargestProfit Trade56.27Loss Trade-45.87
AverageProfit Trade36.50Loss Trade-18.00
MaximumConsecutive Wins ($)10(342.72)Consecutive Losses ($)17(-363.27)
MaximalConsecutive Profit (count)427.27(9)Consecutive Loss (count)-363.27(17)
AverageConsecutive Wins5Consecutive Losses4
Minimal position holding time0:03:57Maximal position holding time86:41:00Average position holding time15:17:45

Charts

Backtest Charts

Verification Artifacts

Download the raw backtest execution data to verify trade statistics and drawdowns: