PPO agent (stable-baselines3) trained on Dec 2024 – Aug 2026 XAUUSD 1-minute bars (705,610 bars), evaluated on the held-out slice Sep 1 – Nov 26, 2026 it never trained on. Starting capital $10,000. Chart times are UTC (SGT = UTC + 8h).
Loading results…
Loading chart data…
Lower pane: agent net worth minus buy-and-hold net worth, in $ — green when the agent is ahead of simply holding gold, red when behind. The zero line is marked.
Read this before judging the agent
TensorTrade does not predict price. The blue line is not a forecast — it is the agent's portfolio value as it traded (or, mostly, did not trade). The candles are the actual Dukascopy/HistData gold price.
The agent made exactly 1 trade in 3 months (bought 17 Nov 21:30 UTC at $3,854.07, sold 1 minute later at $3,853.91, −$28.58). One trade proves nothing about skill — the pipeline works, the agent is unproven.
It "beat" buy-and-hold only by sitting out a crash. Gold fell 19.76% in the eval window; a long-only agent that stays flat loses nothing while buy-and-hold loses $1,976. That is the structure of the action space, not trading skill.
Long-only, and the action is a toggle. BSH has two actions: target flat (0) or target long (1); a trade fires only when the target changes. There is no short and no hold action. Our v40-adx comparison run is sells-only, so any comparison is asymmetric by design.
The simulated commission is far higher than the 0.01% set in the script. Measured in a flat-price test: a full round trip costs about $55 on $10,000 at ~$3,900/oz (buy ≈ $16 from 2-decimal quantity rounding, sell ≈ $39 from TensorTrade's 0.01 oz minimum commission). The intended $1.05/trade never happens. A future run should use a 4-decimal gold instrument.
Did not beat v40-adx. v40-adx made +$412.58 (PF 2.70, 65 trades) on its Mar–Nov 2026 window; this agent made −$28.58 on Sep–Nov 2026 with 1 trade. Different windows and opposite directions, so the comparison is indicative only.
Visualisation only. No signals, no live trading, no MT4/MT5 connection. Research backtest on historical data.
Data: Dukascopy M1 (Mar–Nov 2026) + HistData M1 (Dec 2024–Feb 2026, verified bar-for-bar against Dukascopy on the March overlap). Eval candles aggregated to H1 for display; worth / difference series are the last value of each hour. Buy-and-hold line is rebased to $10,000 at the first bar the agent sees (Sep 1 00:09 UTC); the headline B&H net (−$1,976.24) is over the full slice from Sep 1 00:00 UTC, a $15.18 difference. Chart built with TradingView Lightweight Charts v4.2.0.