Skip to main content

The University of Waterloo quantitative analysis stocks club backtesting framework repository.

Project description

backtesting-framework

The University of Waterloo Quantitative Analysis Stocks Club Backtesting Framework

Welcome to the University of Waterloo Quantitative Analysis Stocks Club Backtesting Framework repository. This framework is designed to help you test and analyze various stock trading strategies using historical data.

Features

  • Historical Data Analysis: Import and analyze historical stock data to backtest trading strategies.
  • Strategy Implementation: Implement and test custom trading strategies.
  • Performance Metrics: Evaluate the performance of your strategies with various metrics.
  • Visualization: Visualize the results of your backtests with charts and graphs.

Getting Started

Prerequisites

  • Python 3.x
  • Required Python libraries (listed in requirements.txt)

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/backtesting-framework.git
    
  2. Navigate to the project directory:
    cd backtesting-framework
    
  3. Install the required dependencies:
    pip install -r requirements.txt
    

Usage

  1. Prepare your historical data in the required format.
  2. The current application runs on data in csv format and uses streamlit.
  3. Run the application:
    streamlit run main.py
    
  4. CSV File Access:
    • Due to file size constraints, the CSV file 'hackathon_sample_v2.csv' used for backtesting is stored externally
    • You can download it from [https://drive.google.com/file/d/1H3ktLEsd3Bg9A9Rx5P45OdnYMEdkX29s/view?usp=sharing] and place it in the data/ directory.

Happy backtesting!

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

uwqsc_backtesting_framework-2025.3.7.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file uwqsc_backtesting_framework-2025.3.7.tar.gz.

File metadata

File hashes

Hashes for uwqsc_backtesting_framework-2025.3.7.tar.gz
Algorithm Hash digest
SHA256 3d7717b68b6914cde63874406db4bbb818912df69a8f839c05832adefbf2b9e9
MD5 959788bf528ce00797de19829b5148c9
BLAKE2b-256 69b312ad6ae32f0dda08ccaf442d68012d5497a8dee962fae04fadaf3ed88158

See more details on using hashes here.

File details

Details for the file uwqsc_backtesting_framework-2025.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for uwqsc_backtesting_framework-2025.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 91be34b0219e8a6138a06e2f3e47d075fb9a437d36f658a3dfac3ca6c8b8edfa
MD5 3f6c4db04258153f9ceb39d54421d1d8
BLAKE2b-256 381aecf99701286dda139b9ef5967fee2bf1c4ad5a9718563b36e49d2fc608cf

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