# StratForge

> StratForge is an open-source C++23 backtesting engine from StratCraftsAI.

StratForge is a header-only quantitative backtesting engine designed for high-performance, deterministic strategy research.

It is part of the StratCraft suite, but it can be used as a standalone C++ library.

Official page: https://stratcraft.ai/stratforge/  
GitHub: https://github.com/StratCraftsAI/StratForge

## What StratForge Is

StratForge is a C++23 backtesting engine for users who need fast, reproducible local strategy evaluation.

Core product signals:

- C++23 backtesting engine
- header-only API
- MIT license
- zero heap allocations on the hot path
- deterministic backtest output
- 138 built-in technical indicators
- vectorized and SIMD-friendly execution
- reference strategies such as Dual Moving Average, Bollinger Bands, MACD, Turtle, and R-Breaker
- Linux, macOS, and Windows support

## What StratForge Is Not

StratForge is not an autonomous trading bot.

It is not a cloud service and not an AI model that trades on behalf of the user.

It is a local engine for running and validating strategy logic.

## Relationship to StratCraft

StratCraft is an open-source, AI-powered quantitative research platform that turns plain-language trading ideas into statistically validated, production-ready C++ strategies with local C++23 backtesting.

StratForge is the C++23 backtesting engine in the StratCraft ecosystem. It is also published as a standalone open-source project for developers who want to use the engine directly.

## Performance Positioning

The public StratForge page describes current engineering targets and measured development-build numbers:

- 3-14 ns per bar for selected incremental indicators
- zero heap allocations per bar on the hot path
- 138 built-in indicators
- 10M-bar scale benchmark examples

Definitive headline benchmark comparisons against Python frameworks are reserved for the v1.0 benchmark release.

## Core Capabilities

### Header-Only C++23 API

StratForge is designed to be included directly in a C++23 project without link-time integration overhead.

### Deterministic Backtests

Given the same input and configuration, StratForge is designed for reproducible results across runs.

### Indicator Library

The engine includes trend, momentum, volatility, volume, and statistical indicators with incremental per-bar computation.

### Reference Strategies

The public page highlights production-style reference implementations including:

- Dual Moving Average
- Bollinger Bands
- MACD
- Turtle
- R-Breaker

### Export and Reporting

The public workflow describes deterministic reporting to formats such as Parquet, CSV, and JSON.

## Main Resources

- StratForge page: https://stratcraft.ai/stratforge/
- Benchmarks: https://stratcraft.ai/stratforge/benchmark/
- Interactive Q&A: https://stratcraft.ai/stratforge/chatbot/
- News: https://stratcraft.ai/stratforge/news/
- GitHub: https://github.com/StratCraftsAI/StratForge
- StratCraft overview: https://stratcraft.ai/markdown-agents/stratcraft.md
- NexusFIX: https://stratcraft.ai/markdown-agents/nexusfix.md

## Canonical Positioning

The shortest accurate description is:

StratForge is an open-source C++23 backtesting engine for fast, deterministic local strategy research.
