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

# Create IP-ready results
algosystem ip strategy.csv --benchmark sp500

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.7.tar.gz (2.2 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.7-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for algosystem-0.1.7.tar.gz
Algorithm Hash digest
SHA256 9fb208cbb93444f1e702300ba2f4a8910bbe1146f556ce5d93cfadb82c8ffa62
MD5 abddc303dc9091569d5368fb17daadc9
BLAKE2b-256 8a26c3468a1ff85cbd5fc7ddf5e005ac975ad43ff8b2a9337f183c91ff8ef103

See more details on using hashes here.

File details

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

File metadata

  • Download URL: algosystem-0.1.7-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.8 Windows/11

File hashes

Hashes for algosystem-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ccd1a9d6d3326a2628dbbe2665c62e223475af76775c82b43ebcf86157dc7b56
MD5 fb69e5928f4502b8475ed49b075f15ab
BLAKE2b-256 cd45d25a9fc4863a177ceea8b8d4dd1c0fc998cb522f42e6e595ed331b301852

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