
Quantis AI Trading
An autonomous AI agent trades a US-stock paper account with four sleeves — a volatility-targeted leveraged index core held overnight, a mechanical multi-asset trend sleeve, a conditional protective-put hedge and a paused intraday opening-range sleeve — every position wrapped in hard survival mechanics the LLM cannot override.
Personal engineering project · Paper trading only · Not investment advice
A Sharpe-stacker: several uncorrelated, evidence-backed return streams under one risk engine, instead of one prediction bet. An LLM runs the routines, but every sleeve is a formula and the core's protective stop is set by code, not the model — the core's leverage is target ÷ realised volatility (capped 2×, held overnight), the trend sleeve is pure 12-month momentum, the intraday sleeve is a zero-LLM breakout script, and the put hedge switches on only when the book is actually levered. The vol-target is the engine; the drawdown ladder, VIX kill-switch, margin-distance gate and hedge are the defence. Survival is rule one — a wipeout can't compound.
How it works
Size to volatility
The pre-market routine measures the core's realised volatility and sets its leverage by formula: target ÷ realised vol, capped at 2.0×. Calm tape earns more leverage; turbulent tape automatically gets less — before VIX even spikes. Below the 200-day moving average the exposure is halved. On the first session of each month it also checks five non-QQQ assets (long and intermediate Treasuries, gold, commodities, developed ex-US stocks) and holds each one only while its 12-month trend is positive. The numbers are calculations, not vibes.
Deploy the sleeves
The leveraged index core is sized to the vol-target, gets a catastrophic backstop stop, and — new in v4.0 — is HELD overnight: 21 years of data show index returns accrue overnight, and the old habit of de-levering into every close gave that leg away. A conditional protective put comes on only when the book is levered past 1.10×. The multi-asset trend sleeve (≤15%, unlevered, wide static stops) rebalances monthly. The open-time core order itself is placed by code, not the model. Zero single-name stock picking — that sleeve was retired after proving to be all cost and no fills.
Trade the open, survive always
A separate zero-LLM opening-range-breakout script on SPY is built and wired in but currently paused: the published evidence for ORB is weak once costs are counted, so it stays off until a forward test earns it a slot. Meanwhile two intraday risk-checks (10:30 + 13:30 CT) plus midday enforce the survival stack: drawdown ladder (−10/−20/−25%), VIX kill-switch, margin-distance gate, fast-reversal trigger. A deadman watchdog flattens the book if the routines ever stall. Friday's Opus review runs per-sleeve alpha attribution and the kill-checks.
How it's built
No databases, no ORM, no in-memory state. Every memory file — strategy rulebook, trade ledger, daily research, the atomic risk-state file, weekly reviews — is committed to a private GitHub repo. Every routine run is a fresh container that clones, decides, commits, exits.
Hard rules the LLM cannot override
Leverage is set by formula and held inside a cage of survival mechanics enforced before any order is placed. The LLM runs the routines and picks the single names; the rules derive the core's leverage from realised volatility, cap it at 2×, keep the hedge on, and pull risk the moment drawdown or volatility crosses a line.
- Volatility-targeted leverage — gross = target ÷ realised vol, hard whole-book cap 2.0×
- Trend filter — leverage halved when the core is below its 200-day MA
- Hold the vol-target overnight — index returns live in the overnight leg; the old close-out habit measurably cost return
- Multi-asset trend sleeve — Treasuries, gold, commodities, ex-US stocks, 3% each while the 12-month trend is up, ≤15% of equity, unlevered
- Intraday sleeve — opening-range breakouts on SPY, mechanical script, always flat by the close (currently paused)
- Conditional protective put — on only when the book is levered past 1.10× (premium ≤3% of NAV per year)
- Catastrophic GTC stop on the leveraged core; wide static stops on every rotation holding
- No single-name stock picking — the discretionary sleeve was retired on evidence, not feeling
- Drawdown ladder: −10% halve · −20% defensive · −25% hard halt; VIX kill-switch + 15% margin-distance gate
- Margin financing modelled net-of-carry; deadman watchdog flattens the book on any stall
What this actually is
This is a learning project. The infrastructure — an autonomous LLM agent, hard-rule risk discipline, git-as-memory, an atomic risk-state file — has engineering value regardless of P&L. There is no signal service, no subscription, nothing for sale, no community — just a private dashboard for the operator and a public page explaining what was built.
See it run
The dashboard is private. The only person with access is the operator. Click below if that's you.
Sign in