Stats page for backtest/live trading
Project description
Stellar Stats
A Streamlit-based trading statistics dashboard that analyzes backtest and live trading performance with comprehensive metrics and visualizations.
Features
- Multi-account performance analysis - Compare performance across different trading accounts
- Benchmark comparison - Compare against market indices with leverage options
- Flexible time periods - YTD, inception-to-date, or custom date ranges
- Comprehensive metrics - Performance metrics, drawdown analysis, return distributions
- Trade analysis - Detailed breakdowns by underlying assets and slippage tracking
- Round-trip analysis - Extract and analyze complete trading round-trips
- Investor tracking - Calculate investor-specific returns
Installation
pip install stellar-stats
Usage
Run the Dashboard
stellar-stats run
This launches the Streamlit web interface for interactive analysis.
Configuration
Create an optional config.toml file to define:
- Account configurations and data directories
- Custom benchmark symbols
- API tokens (Tushare for Chinese market data)
The system will auto-discover account directories if no configuration is provided, which is useful for viewing backtesting results.
Data Sources
- Local files: CSV/HDF/Parquet files containing returns, trades, round trips, and slippage data
- Market data: yfinance for global benchmark symbols
- Chinese markets: Tushare API (requires token configuration)
- Investor data: Optional investors.csv for investor-specific analysis
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stellar_stats-0.8.9.tar.gz.
File metadata
- Download URL: stellar_stats-0.8.9.tar.gz
- Upload date:
- Size: 45.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cddc0f2c3a3d7fe0830fd1e75ed3f877571e4cf312c48d3e3ebfdfaa3aa760d
|
|
| MD5 |
f372cc856f5eea99b9ed71d2c37142e3
|
|
| BLAKE2b-256 |
ee357def65fd44ec97ac1559cf0c003039b9e7ff918f8563775be9808ad108b6
|
File details
Details for the file stellar_stats-0.8.9-py3-none-any.whl.
File metadata
- Download URL: stellar_stats-0.8.9-py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b52bdedd738544e8f8bf0f29032fd2705d95cd4f52f6ac021a3abbe0b266705
|
|
| MD5 |
7b2b00fe6e8428912e1d2bbcd114849a
|
|
| BLAKE2b-256 |
df2a6abd21875535f4ca2bab65028cb4bb1738ae0e5b1758587d87cda7ddd0fe
|