MIKODES Shop Talk to us
Shop Crypto trading

Thesis

Strategy Builder - Web App for Perpetuals Backtesting and Paper Trading

Thesis preview

AI tools were used to assist with parts of the code, documentation and graphics of this item. The author directed and reviewed the work.

What it does

  • Visual rules editor with live chart preview and natural-language edits shown as a diff
  • Bar-by-bar backtest on up to 5,000 Hyperliquid candles with fees, slippage, stop-first and real hourly funding
  • Robustness lab: walk-forward, Monte Carlo, parameter sensitivity, look-ahead check, A-F grade in a Web Worker
  • Non-custodial order signing from the user's browser tab (agent key, entry+stop+target in one normalTpsl action)
  • Paper, testnet and mainnet runner using the same engine as the backtest, decided per closed candle
  • Guided flow gate: live modes unlock only above the operator's minimum grade
  • Strict strategy schema with clamped limits and change report
  • Templates, JSON rules and saved strategy library (works without any AI key)

You need

  • Node.js >= 22.12 (package.json engines); pnpm (pnpm-lock.yaml). pnpm build compiles pages (dist/) and server + Admin Kit
  • ADMIN_SECRET_KEY (32 bytes, openssl rand -hex 32) to enable /admin; unset = /admin 503 and default settings (.env.exampl
  • Admin storage: DATABASE_URL (Postgres 14+, e.g. Neon pooled, sslmode=require; required on Vercel) or SQLite via optional
  • Optional: ANTHROPIC_API_KEY (operator's own, for chart-to-rules; paid per use) - the desk works without it
  • Optional on Vercel: Blob store (BLOB_READ_WRITE_TOKEN) for persistent aggregate counters; THESIS_BLOB_ACCESS if public