An AI agent writes each strategy in a small typed language, a validator checks every draft, and the version that passes is compiled into a fixed artifact that both the backtester and the live engine run.
With Keel we built a small typed language (DSL) to represent strategies. It uses a well defined set of components to build a DAG of steps, it carries types and clocks. This allows agents to build these strategies with a really fast feedback loop as they can be quickly validated and many common errors avoided. In a DAG its also easy to inspect intermediate results. Valid strategies are fingerprinted and the exact same artifact runs in backtesting and live. These strategies are also much easier for humans to verify as they are self describing components, and mostly linear to read and reason about.
Still trying to improve the space of how many types of different strategies can be represented in this and still trying to improve how well LLMs go from natural language to strategy. A lot of the improvements come from just giving the agents better and faster tools and faster feedback loops.
0 comments
No comments yet.
Related stories
- Hacker News · 5 points · 10 days ago
- Hacker News · 2 points · 8 days ago
- Launch HN: Vespper (YC F24) – SOTA Docx MCPvespper.comHacker News · 31 points · 3 days ago
- Hacker News · 3 points · 7 days ago
- Show HN: Wallstreetclaws.com – Create AI Agents for Tradingwallstreetclaws.comHacker News · 2 points · 6 days ago
- Hacker News · 8 points · 7 days ago