VanguardGold bots · demoTeam handbook

Inside Vanguard

A gold day-trading lab. Its bots watch the market opens, record what they would trade, and replay the session so the team can check each decision.

Shadow and trial run · simulated orders only Walk through a simulated trade
Four timeframes, one Market Picture Four stacked chart planes illustrate five-minute gold candles grouped into 15-minute, one-hour and four-hour views. The drawn candles are illustrative. 5 min15 min1 hour4 hours
One gold market, viewed at four timeframes.

Vanguard architecture

Vanguard connects a demo broker to a Python trading engine. The engine records simulated decisions for the operator to inspect and the research team to replay. These maps describe the build and deployment records as of .

System architecture

Components and data flow

One account worker coordinates the bots. Read down to follow the data from the broker to the two places where people inspect the result.

  1. Exness Pro demo · MetaTrader 5

    The broker supplies XAUUSD prices to the MT5 desktop terminal. Vanguard’s broker adapter reads candles, quotes and symbol specifications through the official MetaTrader5 Python package.

  2. Closed candles and bid/ask quotes

    Account worker · Market Picture

    Account, instrument and bot configurations tell the worker what to load. It polls MT5 and coordinates one runner per bot. The Market Picture combines 5-minute, 15-minute, 1-hour and 4-hour views of sessions, structure, liquidity and price zones.

  3. Shared market context

    Strategy bots · Exit Planner · account risk checks

    Each bot evaluates its own entry rule. The sizing and risk components check lot size, stop distance and shared exposure. Exit logic manages targets and, for eligible strategies, a ladder of partial exits. Shadow and trial-run decisions are simulated.

  4. Decisions, simulated fills and worker status

    SQLite ledgers · JSON snapshots · shadow evidence

    Per-bot ledgers retain trades and decisions. The account ledger tracks worker state. Snapshots carry the Market Picture and bot stances. Shadow captures preserve inputs and event order for comparison.

Ledgers and snapshots

Vanguard dashboard

The Python web server supplies the phone browser with Today, Chart, Bots/Goal, Claude and Research views. The operator can inspect bot health, decisions, trades and alerts.

Historical exports or captured inputs

Time Machine and research

Replay runs the shared strategy and exit rules. Walk-forward tests apply trading costs, the comparator checks shadow events, and reports summarize performance, drawdown and promotion evidence. The final holdout stays locked.

Six configured bots and their roles
gold-asia-orb
Tokyo opening-range breakout. The frozen bot used in the walkthrough.
gold-nycash-orb
Opening-range breakout at the New York cash open.
gold-asian-sweep
Looks for a sweep of the Asian range.
gold-smc-zone
Looks for entries around market structure and price zones.
gold-steve-smc
Combines opening-session zones, a liquidity sweep and a structure change, with laddered exits.
gold-strategy3-control
Trial-run comparison bot. The other five are configured for shadow.

Advisory inputs. The calendar reader uses Vanguard’s read-only MT5 MCP gateway for economic events and clock information. The optional pre-open Analyst uses the Anthropic Claude API for shadow briefings, with a spending ledger and an owner-set cap. The model receives selected context. Its briefing is recorded for evaluation.

Deployment architecture

Builds, machines and release paths
Development environment

macOS · Git workspace · Python 3.9

The current source, six bot configurations, fake broker, offline tests, Time Machine and handbook source live in the development workspace. The app, the contributor ZIP and the handbook each have their own release path.

Owner-approved application release

AWS Lightsail

Sydney · Windows Server 2022 · Python 3.13. An approved Git release supplies the application checkout. A Windows Python virtual environment runs Vanguard Engine and Vanguard Dashboard alongside the MT5 desktop terminal and Python bridge. Ledgers, snapshots and logs stay on the Windows host.

Last recorded Windows release
Five bots and the earlier dashboard. Current worker and terminal health await a Windows check.

Contributor ZIP, shared directly

Teammate’s computer

macOS, Linux or Windows · Python 3.9+. The local launcher starts the sample dashboard with generated prices and an in-memory journal. A 47-candle fixture drives the offline replay.

Kit verified on Linux
The sample produced one simulated entry and close. A teammate can reproduce it independently.

Static handbook build

ChatGPT Sites

Public documentation environment. The handbook generator assembles the standalone diagrams, HTML guides, stylesheet and Markdown downloads. A saved Sites version publishes those files.

Public team release
The interactive walkthrough runs in the reader’s browser from the published HTML.

Solid connectors show the prepared kit and published handbook. The dashed connector marks the newer application build awaiting an approved Windows deployment and recovery rehearsal.

Windows processes and scheduled jobs
Recorded host setup
MT5 runs in a signed-in Windows desktop session. Windows Task Scheduler starts Vanguard Engine and Vanguard Dashboard. The cloudflared Windows service connects the private dashboard to Cloudflare.
Build 2 operations package
PowerShell defines Vanguard MT5 for terminal startup, Vanguard Watchdog for health checks, Vanguard Calendar for news, Vanguard Backup for SQLite copies, and Vanguard Log Rotation for logs.
Research and alerts
Vanguard Shadow Replay compares captures. Vanguard Promotion assesses evidence for review. The dashboard inbox receives alerts. Optional ntfy phone delivery is off.
Deployment status
The shared Market Picture, sixth bot, expanded dashboard, Analyst and newer operations package are in the local build. Windows installation and recovery validation are pending for that release.

Hosting architecture

Who connects to which service

Public team handbook

  1. Teammate’s browser
  2. requests a public page fromChatGPT Sites
  3. returnsStatic HTML and downloads

This is the route serving this diagram. Page navigation runs locally in the browser and makes no calls to the trading account.

Private trading dashboard

  1. Operator’s phone
  2. signs in throughCloudflare Access · Google
  3. request travels throughCloudflare Tunnel · cloudflared
  4. delivers request toVanguard Dashboard on Lightsail

The dashboard reads worker state on Windows and returns a read-only view over the tunnel. The authorized operator sees the private trading records.

Broker connection

  1. Python account worker
  2. reads via the local bridgeMetaTrader 5 on Windows
  3. connects toExness Pro demo

Market data returns along this connection. The configured simulation modes record hypothetical trades. Any future supervised demo requires evidence, owner-set risk limits and separate approval.

Project coordination. The development dashboard is a local HTML page on the Mac. A private ChatGPT Page carries the mobile progress and decisions handoff. Its Team link opens the public handbook above.

Walk through one gold trade

Tokyo open, 10 July 2025. Follow a simulated buy from the first market input to the final replay check. Choose a stage or use Next to follow the trade in order.

Step 1 of 6 · Gold prices

Read the closed candle

The input is an Exness export of gold priced in US dollars (XAUUSD). In this historical reconstruction the worker sees five-minute candles and bid and ask quotes rebuilt from recorded spreads.

Handoff · The closed candle and reconstructed quote go to the worker.

Signal candle · UTC
Opened
00:30
Closed
00:35
Date
10 July 2025
Step 2 of 6 · Market Picture

Put the candle in context

Vanguard groups closed five-minute candles into longer views. Its Market Picture gives bots a shared view of the session, trend and price zones. This bot’s entry rule uses the Tokyo opening range.

Handoff · The bot can read the shared picture and track its own opening range.

Shared market views
Base candle
5 minutes
Longer views
15 min · 1 h · 4 h
Session
Tokyo open
Step 3 of 6 · Bot signal

A close above the opening range

The frozen Asian breakout bot marks the high and low of the first 30 minutes after Tokyo opens. The 00:30–00:35 candle closed above that range and triggered a buy setup.

Handoff · The strategy passes the proposed buy and its price levels to the account checks.

Asian breakout · UTC
Opening range
00:00–00:30
Confirmation
00:35
Signal
Buy
Step 4 of 6 · Account checks

Size the simulated buy

The worker checks whether the position size and stop fit the account’s configured limits. This historical setup qualified for 0.01 lot. The distance from entry to stop put $3.74 at risk in the simulation.

Handoff · The shadow worker records an entry at 00:35:05 UTC. The candle-based replay timestamps it at 00:35:00.

Simulated order · 0.01 lot
Target
3,325.8665
Entry
3,320.264
Initial stop
3,316.529
Entry sits 40% of the way from the stop to the target.
Step 5 of 6 · Trade record

The stop closes the trade

Six five-minute bars later, gold reached the stop. The worker recorded the close at 01:05 UTC. The ledger keeps the entry, exit and close reason so the read-only dashboard can show what happened.

Handoff · The saved trade gives the team an outcome to compare with replay.

Shadow reconstruction
Exit at stop
3,316.529
Time held
6 bars
Before commission
−$3.74
The simulated exit landed at the stop.
Step 6 of 6 · Time Machine

Check both decision histories

The Time Machine replayed the same inputs with the same strategy and exit rules. The team compared blocked setups as well as the completed trade. Both paths recorded the same entry, stop and simulated loss.

Review · The comparison accounts for the worker’s five-second observation delay. A fresh session with captured quotes is the next evidence check.

Matching events · both paths
Blocked setups
14 of 14
Entries
1 of 1
Closes
1 of 1

The local configuration has six bots. Two watch opening-range breakouts, two look for liquidity sweeps or price zones, one combines those signals around market opens, and one runs as a trial-run control for comparison.

Trade records → phone

Read-only dashboard

Today shows each bot’s stance and simulated trades. Open its chart to inspect a setup, or its goal view to follow the simulated balance.

Recorded inputs → replay

Time Machine

Replay uses the same strategy and exit rules on historical candles. The team compares blocks, entries and exits and investigates the first difference.

Optional input → bots

Pre-open Analyst

The shadow Analyst can suggest more caution before a session. Paid briefings are gated by credentials and a spending cap set by the owner.

Evidence → owner review

Supervised demo

A future demo needs forward evidence, owner-set limits and explicit approval. Vanguard refuses real-money accounts.

Solid edges show the local build’s evidence paths. Dashed edges mark conditional features. The research holdout stays locked.

Historical reconstruction · 10 July 2025

Replay of a losing trade

The frozen Asian breakout bot signalled a buy. The shadow reconstruction and Time Machine used the same historical candles and reconstructed quotes.

Simulated buy · 0.01 lot
3,320.264
Stop hit · six bars later
3,316.529
Result before commission
−$3.74

Both paths agreed on 14 blocked setups, one entry and one close. The next test is to capture incoming quotes during a fresh shadow session and repeat the comparison.

How two people build together

Shared code and offline samplesBot rules, tests and reproducible examples

Copy shared code into

Steve’s private workspace

The sample runs locally. In the proposed connected workspace, Steve owns his configuration, trade ledger and broker identity.

Steve’s Exness Personal Area

  • Separate MT5 demoSteve’s demo login and server
  • Real account · excludedOutside Vanguard

Copy shared code into

Teammate’s private workspace

The teammate runs an independent copy. Their proposed connected workspace uses their own settings, ledger and broker identity.

Teammate’s Exness Personal Area

  • Separate MT5 demoTeammate’s demo login and server
  • Real account · excludedOutside Vanguard

Current boundary. The contributor kit runs offline with sample data. Connected team workspaces and individual dashboard sign-in are proposed.

What each person can work on

Steve · Baseline and evidence

Keep the Asian breakout settings frozen. Check that each shadow entry, block and exit agrees with replay on the same observed session.

Teammate · One independent variant

Write down one rule change before looking at results. Use a separate bot and ledger to test it on the same future sessions.

Agree on the test in shared code. Each person can measure net returns after costs, trade count, drawdown and skipped setups in their own workspace. Include quiet and losing sessions and leave the holdout locked. Check whether average net results stay positive across fresh sessions and under higher costs before drawing conclusions about a possible edge.

How costs change break-even

Hypothetical averages per trade. The $1 cost applies once to every round trip and covers assumed spread, fees and slippage.

Gross win
+$12
Gross loss
−$8
Trading cost
$1
  • Before costs40%
  • After costs45%

After costs, the average win is $11 and the average loss is $9. Break-even is $9 ÷ ($11 + $9) = 45%. This example illustrates the cost adjustment only.