BuildAlgorithmic tradingRisk systemsInstrumentation

XAU/USD Trading Bot

A containerised Python trading system on the MetaTrader 5 API, built to be audited rather than trusted.

9 STRATEGIESREGIMECLASSIFIERRISKHEATDAILYDRAWDOWNLOGS WHICH GATE STOPPED IT

The problem

An automated trader that cannot explain itself is unusable: when it stops taking trades you cannot tell whether the market is quiet, the strategy is wrong, or a risk gate is silently rejecting everything.

What was built

Nine strategies behind a market-regime classifier, with broker-aware position sizing computed from contract size and tick value rather than a hardcoded pip value, and layered risk brakes — per-trade, portfolio-heat, daily-loss, drawdown and consecutive-loss gates.

The engineering decision

Every rejected setup logs the gate that stopped it and why, which is what turned an opaque bot into something diagnosable. That instrumentation is what exposed the real constraint at small account sizes: gold’s minimum lot risks the stop distance in dollars, so a conservative risk cap does not mean “risk less”, it means never trade. No performance claim is made for this one.

Next plate

Nexus Agentic OS

An agentic-AI console that routes and governs every WhatsApp conversation across five businesses.