Build better trading strategies faster
GlowBack is a high-performance quantitative backtesting platform that combines the speed of Rust with the ease of Python. Whether you’re a quantitative researcher, algorithmic trader, or data scientist, GlowBack provides the tools you need to develop, test, and analyze trading strategies with confidence.Get started
Run your first backtest in under 5 minutes
Installation
Install GlowBack for Rust or Python
Core concepts
Learn about event-driven simulation
API reference
Explore the Python and Rust APIs
API reference
Explore the complete API documentation
Key features
Event-driven backtesting engine
GlowBack simulates realistic market conditions with chronological event ordering across multiple symbols. The engine includes configurable slippage, latency, and commission models to ensure your backtest results reflect real-world trading conditions.Multi-asset support
Backtest strategies across multiple asset classes with asset-class-aware features:- Equities: Standard market hours, integer shares, tiered commission structures
- Crypto: 24/7 trading, fractional quantities, maker/taker fees
High performance with ease of use
GlowBack’s Rust core delivers exceptional performance for processing millions of bars and events. Python bindings with async support provide a familiar, productive development experience without sacrificing speed.Built-in strategy library
Start backtesting immediately with production-ready strategies:- Buy & Hold: Long-term passive investment baseline
- Moving Average Crossover: Trend following with customizable periods
- Momentum: Rides trends with configurable lookback and thresholds
- Mean Reversion: Statistical arbitrage with z-score analysis
- RSI: Relative strength index with overbought/oversold signals
Efficient data storage
Arrow/Parquet columnar storage provides fast batch loading and efficient disk usage. SQLite metadata catalog enables indexed queries across symbols, date ranges, and resolutions.Interactive development UI
Streamlit-based interface for visual strategy development:- Load data from CSV, APIs, or sample datasets
- Edit strategies with syntax highlighting
- Run backtests with real-time progress
- Analyze results with interactive charts
The UI launches at
http://localhost:8501 with a single command: cd ui && python setup.pyProgrammatic API access
FastAPI gateway provides RESTful endpoints for:- Submitting backtests programmatically
- Retrieving results and analytics
- Running parameter optimizations
- WebSocket support for real-time updates
Comprehensive performance analytics
GlowBack calculates essential performance metrics automatically: Return metrics:- Total return, CAGR (Compound Annual Growth Rate)
- Period returns (daily, monthly, annual)
- Sharpe ratio (risk-adjusted returns)
- Sortino ratio (downside deviation penalty)
- Calmar ratio (return vs max drawdown)
- Maximum drawdown and recovery time
- Value at Risk (VaR) and Conditional VaR (CVaR)
- Volatility, skewness, kurtosis
- Win rate, average win/loss
- Profit factor, expectancy
- Trade count and frequency
Architecture overview
GlowBack is organized as a Rust workspace with Python bindings:gb-types
Core data structures for symbols, orders, portfolios, and strategies
gb-data
Data ingestion with Parquet storage and SQLite catalog
gb-engine
Event-driven simulation with realistic execution models
Use cases
Quantitative research
Test hypotheses about market behavior with fast iteration cycles. Load historical data, implement your strategy logic, and analyze results with comprehensive performance metrics.Algorithmic trading development
Develop and validate algorithmic trading strategies before deploying capital. GlowBack’s realistic execution simulation helps identify issues that paper trading might miss.Portfolio optimization
Backtest portfolio allocation strategies across multiple assets and time periods. Optimize parameters using built-in optimization tools.Education and learning
Learn quantitative finance concepts with working code examples. The built-in strategy library provides templates for common approaches.What’s next?
Quickstart guide
Run your first backtest in minutes
Installation
Set up your development environment
Core concepts
Understand event-driven backtesting
Strategy development
Create custom trading strategies