Skip to content

Hypothesis validator

interpretable-ml-trading

You have a trading idea and you are not sure it actually works. This repo helps you write that sentence as a testable contract: when trading is allowed, how you exit when wrong, what you risk, and which stretch of market measures it. Then it runs on trades you downloaded, a monthly feature store, and one locked ruler, and hands you a table: bear, bull, and recent windows, each with CAGR, Calmar, win rate, max drawdown, and Sharpe. The repo ships a base feature library (moving averages, crosses, funding, order flow, and more); you are invited to propose more testable ideas on top of those columns. The program prints the numbers; you read the report and the strategy, then write your own conclusion.

Same MA golden-cross sentence, two very different answers:

Web AI Here
Gives you “Classic trend; fake signals in ranges” — a story you cannot re-run Bear / bull / recent tables of five KPIs
Recent-window CAGR (local) −3.1% (source README)

Evidence comes from trades and features on your machine; switch the chat model and the table stays the same. The AI helps fold the template, run the measurement, and retell the five KPIs. You write the conclusion after you understand the report.

Doors

  • Quant basics

    Contract, closed bar, three windows, five KPIs, classify

  • Features and factors

    Measurement, families, store-first, math is not a gate

  • Framework

    Four layers, how to choose, process, which court

  • Tech

    Why local, paths, YAML, commands, who writes what

  • How to use

    How to speak and install

  • Q & A

    Can a rule cheat, why three windows, why correlation cannot close

  • Gallery

    Measured sentences by phenomenon (including rejects)

Where to start

  1. A strategy is a contract · Closed bar · Five KPIs · Classify first
  2. What is a feature · Five families
  3. Four local layers · How to choose
  4. Fill the template · Talk to the AI
  5. Stack and paths · Commands map

Install once: Install and first run · Skim: Q & A · Glossary

Repo docs/ is for the AI and for people who want the fine print. This site is the teaching map.