Skip to main content

A batteries-included pythonic library for AlgoGators members

Project description

🚀 AlgoSystem

PyPI version Python 3.9+ License: GPL v3 Built with Poetry

AlgoGators professional algorithmic backtesting and dashboard visualization library.

🚀 Quick Start

Installation

pip install algosystem

Command Line

# Generate dashboard from CSV
algosystem dashboard strategy.csv

# With benchmark comparison
algosystem dashboard strategy.csv --benchmark sp500

# Launch visual editor
algosystem launch

Python API

import pandas as pd
from algosystem.api import quick_backtest

# Load strategy data (CSV with date index and price column)
data = pd.read_csv('strategy.csv', index_col=0, parse_dates=True)

# Run backtest and show dashboard
engine = quick_backtest(data)

📊 Dashboard Features

Available Metrics (20+)

  • Performance: Total Return, Annualized Return, Volatility
  • Risk: Max Drawdown, VaR, CVaR, Skewness
  • Ratios: Sharpe, Sortino, Calmar, Information Ratio
  • Benchmark: Alpha, Beta, Correlation, Tracking Error

Available Charts (15+)

  • Core: Equity Curve, Drawdown, Daily Returns
  • Rolling: Sharpe, Sortino, Volatility, Skewness
  • Analysis: Monthly Returns, Yearly Returns, Benchmark Comparison

Built-in Benchmarks (40+)

  • Indices: S&P 500, NASDAQ, DJIA, Russell 2000
  • International: Europe, UK, Japan, China, Emerging Markets
  • Sectors: Technology, Healthcare, Financials, Energy
  • Assets: Gold, Real Estate, Commodities, Bonds

📖 Documentation

🔧 Example Usage

Complete Workflow

from algosystem.api import AlgoSystem

# Load data and benchmark
strategy_data = pd.read_csv('strategy.csv', index_col=0, parse_dates=True)
benchmark_data = AlgoSystem.get_benchmark('sp500')

# Run backtest
engine = AlgoSystem.run_backtest(strategy_data, benchmark_data)

# Print results
AlgoSystem.print_results(engine, detailed=True)

# Generate dashboard
AlgoSystem.generate_dashboard(engine, open_browser=True)

# Export data
AlgoSystem.export_data(engine, 'results.csv')

Engine-Level Control

from algosystem.backtesting import Engine

engine = Engine(
    data=strategy_data,
    benchmark=benchmark_data,
    start_date='2022-01-01',
    end_date='2022-12-31'
)

results = engine.run()
dashboard_path = engine.generate_dashboard()

📋 Data Format

Your CSV should have:

  • Date column as index (YYYY-MM-DD)
  • Price/value column representing portfolio value
Date,Strategy
2022-01-01,100000.00
2022-01-02,100500.00
2022-01-03,99800.00

🛠️ Optional Features

Database Export

pip install psycopg2-binary

📚 License

<<<<<<< HEAD

# Clone repository
git clone https://github.com/yourusername/algosystem.git
cd algosystem

# Install with dev dependencies
poetry install --with dev

# Run tests
pytest

📖 License & Usage Terms

AlgoSystem is licensed under the GPL v3 License. See LICENSE file for details.

📚 Citing

If you use AlgoSystem in your research, please cite:

@software{algosystem,
  author = {AlgoGators Team},
  title = {AlgoSystem: A Python Library for Algorithmic Trading},
  url = {https://github.com/algogators/algosystem},
  year = {2025},
}

======= GPL v3 License. See LICENSE file for details.

b65a78d (docs: 📜)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

algosystem-0.1.6.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algosystem-0.1.6-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file algosystem-0.1.6.tar.gz.

File metadata

  • Download URL: algosystem-0.1.6.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.0 Windows/11

File hashes

Hashes for algosystem-0.1.6.tar.gz
Algorithm Hash digest
SHA256 63b9248f2cc881a45a39dc2b900e38705eea35eb58474887704e591cf809bc71
MD5 cbd58e91449132c7f6b05c3274b432ea
BLAKE2b-256 1f110be3a7443cc8a73fb3471a934139282e58b5d9dc6573fcaa0f43d288f9e4

See more details on using hashes here.

File details

Details for the file algosystem-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: algosystem-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.0 Windows/11

File hashes

Hashes for algosystem-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e582150cd1bf1a7d0717a7a00b6cafc0d5cb64a5667b74cc456bf669505cdcec
MD5 22fd07ff9fa05639047b9dd6f9743fac
BLAKE2b-256 93db6e0ac9b599e64f6d186393943d91b5c173dd8a11fd991157c0228cd956dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page