Skip to content
@theorycraft-trading

theorycraft-trading

TheoryCraft

TheoryCraft is an open-source, event-driven quantitative trading framework designed for research, backtesting, and strategy development.

It focuses on correctness, determinism, and architectural clarity, making it possible to run the same strategy code across backtesting, paper trading, and live trading environments.

Project Links

Vision

The goal of TheoryCraft is to provide a clean and composable foundation for quantitative trading systems, without hiding complexity behind magic abstractions.

Key principles:

  • Event-driven by design
  • Deterministic backtesting
  • Separation of concerns
  • Same code, multiple environments
  • Explicit over implicit

TheoryCraft is not a black-box trading bot.
It is a toolkit for people who want to understand, control, and extend their trading systems.

Core Architecture

TheoryCraft is built around three core concepts:

  • MarketSource - streams and transforms market data
  • Broker - simulates or executes orders and emits execution events
  • Engines - independent event consumers (strategies, risk, portfolio, analytics…)

All components communicate through structured events, enabling reproducible backtesting and consistent live behavior.

Status

TheoryCraft is under active development.
APIs may evolve as the architecture stabilizes.

Why TheoryCraft?

Because trading systems should be understandable, testable, and reproducible.

⚠️ Disclaimer

For research and educational purposes only.
Not financial advice.

Pinned Loading

  1. theory_craft theory_craft Public

    Backtesting engine in Elixir

    Elixir 12

  2. theory_craft_ta theory_craft_ta Public

    Elixir wrapper for TA-Lib (http://ta-lib.org/)

    Elixir 7

  3. kino_theory_craft kino_theory_craft Public

    TheoryCraft integration for Livebook

    JavaScript 2

  4. dukascopy dukascopy Public

    Download and stream historical price data for variety of financial instruments (Forex, Commodities and Indices) from Dukascopy Bank SA.

    Elixir 2

  5. fast_fix fast_fix Public

    FIX Engine Library written in Elixir

    Elixir

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…