Skip to content
M.O.
← All projects

Autonomous trading agent · Solo · 2026

Dionysus

A system rigorous enough to reject its own model.

src/dionysus/engine.pyOne path to the money
  1. Universescanner: volume, spread, fees
  2. Closed candlesnever a candle in progress
  3. Strategytrend, neural filter
  4. News veto8 RSS feeds, custom lexicon
  5. RiskManagersize, caps, circuit breaker
  6. Brokerthe only way to the market
backtestpaperlivesame code
0.569
test AUC: a real but weak signal, model not promoted
−15%
maximum drawdown over 3 years of real data, fees included
+12.2%
over 3 years, against +52.2% for buy & hold: published as is

Problem

A trading agent can shine in simulation and behave differently in production. It needed an architecture where a test result stays true under real conditions, with no paid service, on an old laptop.

Solution

Backtesting, paper trading and live execution all go through a single Engine, the only code allowed to touch the money. The neural network is written by hand in NumPy, with gradients verified by tests, and a promotion gate decides whether it deserves to go into service.

3-year backtest
Dionysus+12.2%
Buy & hold+52.2%
Overfitting
Best epoch16 / 1 000

Without early stopping, everything after epoch 16 was only memorization.

Fees over 3 years
Share of capital16.2%

€162 per €1,000 of capital: the backtest counts them.

Python · NumPy · Polars · SQLite WAL · ccxt · systemd · Next.js

Currently runs in paper trading: no real capital at stake.