Lawrence Plante
← ./all-work

StaxBacktester

Options-signal analytics and backtesting for a live Discord trading workflow

Paid Discord signal services post trade alerts into chat and quote their own win rates. StaxBacktester ingests those alerts into a structured database and answers the questions a subscription won't: what's the real P&L after fees, which signals carry the edge, and what exit strategy captures the most value.

Role

Personal project · all my own code

Timeline

March 2026 – present

Stack

  • Python / FastAPI
  • SQLAlchemy
  • React 18 + Vite
  • Tailwind CSS
  • SQLite / Postgres
  • Docker Compose
  • JWT auth

The problem

Signal services live in Discord chat: unstructured alert messages, updates, and exits scattered across channels. Subscribers get marketing win rates but no way to verify performance, no fee accounting, and no tooling to test whether a different exit strategy would do better on the same signals.

I was following one of these workflows myself and wanted the truth. So I built the instrument.

What I built

Regex alert parsers turn Discord messages into structured signals and trades. From there the platform tracks P&L automatically, models per-trade fees, and amortizes the subscription cost itself into net performance, down to a cost-per-day-traded figure.

The analytics layer goes deeper than win rates: milestone funnels (how often signals reach +10%, +25%, +50%), MAE drawdown profiles, stop-loss sensitivity, reversal statistics, and per-indicator signal quality scoring.

A configurable backtesting engine replays the full signal history under different exit strategies: fixed targets, trailing stops, tiered take-profits, and an Optimal Day Simulator that searches for the best-performing configuration over a chosen window.

The dashboard

StaxBacktester dashboard
Fee-honest by design: subscription cost is a first-class metric, factored into net P&L next to win rate, expectancy, and drawdown.
Edge report view
The edge report breaks performance down by ticker, direction, and exit type.
Optimal Day Simulator
The Optimal Day Simulator searches exit configurations against the full signal history; this run found a +108.6% configuration.
EV curve with sweet spot detection
Expected-value curves locate the take-profit sweet spot per indicator.
All-signals intelligence view
Signal intelligence aggregates every alert the service has ever posted, not just the trades taken.

By the numbers

4,000+

signals logged and analyzed

10+

analytics views

edge, quality, MAE, simulators

2

databases supported

SQLite dev, Postgres prod

100%

my own code

API, front end, infra

Outcome

The platform does what no signal service will do for you: it models whether the service clears its own subscription cost, and shows which exit discipline would have performed best on identical signals.

It runs as a Dockerized multi-user app with JWT auth, a documented REST API, and a professional README covering the API reference and data model.