stock-backtrader-web-app  by chenwr727

Quantitative stock trading analysis web app

Created 4 years ago
252 stars

Top 99.6% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This Python project provides a web application for streamlined stock backtesting and analysis. Targeting quantitative traders and researchers, it integrates Streamlit, AkShare, Backtrader, and Pyecharts to offer a unified platform for data acquisition, strategy simulation, and result visualization within an intuitive web interface.

How It Works

The application employs Streamlit for a user-friendly, interactive web UI. Financial market data, specifically A-shares, is acquired using AkShare. Strategy backtesting is performed by the established Backtrader framework. Professional financial charts and analysis visualizations are generated via Pyecharts, consolidating the entire workflow into a single, accessible application.

Quick Start & Requirements

  • Installation: Install dependencies using pip install -r requirements.txt.
  • Run Command: Launch the web application with streamlit run backtrader_app.py.
  • Prerequisites: A Python environment with all packages listed in requirements.txt.
  • Links: Official repositories for Streamlit, AkShare, Backtrader, and Pyecharts are linked within the technical architecture table.

Highlighted Details

  • Features A-share market data retrieval via AkShare with configurable parameters (symbol, period, dates, adjust).
  • Includes built-in trading strategies: MA (single moving average) and MACross (dual moving average crossover).
  • Backtrader parameters are configurable, including start/end dates, initial capital, commission, and trade stake.
  • Provides unit tests for the MA strategy and suggests related projects like FinVizAI and akshare-gpt.

Maintenance & Community

No specific details regarding maintainers, community channels (e.g., Discord, Slack), or project roadmap are present in the provided README excerpt.

Licensing & Compatibility

The license type and any compatibility notes for commercial use or closed-source linking are not specified in the provided README excerpt.

Limitations & Caveats

The README does not detail specific limitations, known bugs, or the project's development stage (e.g., alpha/beta). The current scope appears focused on A-shares and the implemented strategies, with no mention of broader market support or advanced features.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
5 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.