Back to projects

Ivan

Active

AI-native backtesting and forward tracking for stock-picking strategies (China A-shares and Hong Kong): describe your idea in plain language, AI turns it into rules, the engine backtests them, and once live the strategy is replayed after every close, with backtest and real performance drawn on the same curve.

The demo site needs an invite code to sign up: click "Request an invite code" and leave your email, and I'll send you a sign-up link. Each person gets 20 chats and 10 backtests per day.

Started
2026.09
Stack
TypeScriptHonoReactDuckDBSQLiteVercel AI SDK
Ivan

What it is

A self-hostable workbench for stock-picking strategies. In a chat you say "find companies with a market cap above 10 billion and ROE over 15% for three straight years", and the AI translates that into a structured strategy card that only takes effect once you confirm it. The engine backtests it on historical data. When you're happy, you take it live, and from then on, after each trading day's close, a paper portfolio runs on the same rules. The home page puts backtest and real performance side by side on one curve.

For research only. Not investment advice.

The question it wants to answer

Strategies that look great in a backtest often stop working once they go live. Ivan puts "you at backtest time" and "you after going live" on the same chart, so you can see whether an idea is a real pattern or just overfitting to history.

A few design trade-offs

  • The LLM translates and explains; the engine does the math. Every number on screen comes from the engine and the database. The model never touches numbers.
  • Only rules can be backtested. Asking the model to "pick stocks" from some point in history is letting it peek at the answers, because its training data already contains the future.
  • Data has to be what was visible at that moment. Financial reports take effect on their announcement date, the stock universe includes delisted stocks, and valuations are computed in-house from that day's share count and the reports announced so far.
  • Volunteer the bad news. Out-of-sample decay, returns that are too concentrated, too few trades, fragile parameters: the engine computes these against fixed thresholds and flags them unprompted.
  • Decisions are append-only and can't be edited. Every go-live, parameter change, and settlement is recorded in an append-only ledger, so you can look back at "what I saw that day".

Deliberately left out

Live order placement and broker integration, letting the LLM pick stocks on its own every day, minute-level and intraday data, a strategy-sharing community, a mobile app.

Status

I use it myself. You can request an invite code to try the demo site.