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
- Clone the repository:
git clone https://github.com/yourusername/backtesting-framework.git
- Navigate to the project directory:
cd backtesting-framework
- Install the required dependencies:
pip install -r requirements.txt
Usage
- Prepare your historical data in the required format.
- The current application runs on data in csv format and uses streamlit.
- Run the application:
streamlit run main.py
- 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!
Metadata
Release files for uwqsc-backtesting-framework 2025.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uwqsc_backtesting_framework-2025.3.7.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uwqsc_backtesting_framework-2025.3.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / uwqsc_backtesting_framework-2025.3.7.tar.gz
| Download URL | uwqsc_backtesting_framework-2025.3.7.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d7717b68b6914cde63874406db4bbb818912df69a8f839c05832adefbf2b9e9
|
|
BLAKE2b-256 checksum How to use checksums |
69b312ad6ae32f0dda08ccaf442d68012d5497a8dee962fae04fadaf3ed88158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.20
|
Release files / uwqsc_backtesting_framework-2025.3.7-py3-none-any.whl
| Download URL | uwqsc_backtesting_framework-2025.3.7-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91be34b0219e8a6138a06e2f3e47d075fb9a437d36f658a3dfac3ca6c8b8edfa
|
|
BLAKE2b-256 checksum How to use checksums |
381aecf99701286dda139b9ef5967fee2bf1c4ad5a9718563b36e49d2fc608cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.20
|