AI Trading Systems
This section develops the LLM and agent half of my proposed PhD: how large language models and AI agents might support market decision-making, and — just as important — the controls that make that credible rather than reckless. The other half of the site (the Equation and Machine Learning libraries, the Quant Lab) is quantitative and verified against real data; this section is its qualitative, engineering counterpart, built to the same standard of honesty. The emphasis throughout is transparency and control: an agent should be a testable, auditable component of a system, never an unsupervised black box placing trades.
Where the quant sections compute and check every number, these entries ground every claim in real, runnable code — the actual Anthropic Messages API structure, correct model IDs, and the schema-constrained, guarded patterns my MarketLens AI app uses — so the design principles are shown working, not just asserted.
Published entries
Added one at a time, to the same standard as the rest of the site. The roadmap below is the plan.
AI Risk Controls
Agent Memory & Planning
LLMs versus Conventional ML
Multi-Agent Coordination
Retrieval-Augmented Generation (RAG)
Schema-Constrained News Extraction
Sentiment & Narrative Interpretation
Tool-Using Agents
What Is an AI Agent?
The roadmap
Foundations
What is an AI agent? · LLMs versus conventional machine-learning models.
The News & Narrative Agent
Schema-constrained news extraction · Retrieval-Augmented Generation (RAG) · sentiment and narrative interpretation.
Agent capabilities
Tool-using agents · agent memory and planning · multi-agent coordination.
Safety and control
AI risk controls · hallucination risk when LLMs meet financial data · why an LLM must never directly place trades.
Complete — eleven entries across four tiers, each grounded in real code and honest about its limits: the qualitative counterpart to the proposal’s quantitative evidence.
The proposed multi-agent architecture
A concrete system I want to study — deliberately decomposed so each component can be tested and evaluated on its own, rather than trusting a single model end to end:
- Market Regime Agent — identifies the current market state and estimates regime probabilities (HMMs, mixtures, change-point detection — foundations already built).
- News & Narrative Agent — converts unstructured text into bounded, schema-constrained, timestamp-safe market features; never free-form trading instructions.
- RL Trading Agent — selects exposure, timing, and position-management actions from the combined state, trained on risk-adjusted outcomes.
- Risk Management Agent — approves, scales, or rejects any proposed action against hard, pre-defined limits (exposure, drawdown, Expected Shortfall).
- Review & Learning Agent — evaluates, after the fact, whether each decision was justified given the information available at the time, and attributes outcomes per agent.
- Behaviour Detection Agent (exploratory) — flags microstructure patterns consistent with elevated systematic activity.
The Review & Learning Agent matters most: without a rigorous, honest evaluation loop, a system like this is just automation of overconfidence. The PhD Research page presents the full formal proposal built around this architecture — objectives, hypotheses, methodology, and the evidence already in place across this site.