The "strategy-test-backtesting.py" project is a Python script designed to perform backtesting of trading strategies using the "backtesting.py" library. Backtesting is a crucial step in evaluating the performance of a financial trading strategy using historical data.
These instructions will help you set up a Python virtual environment and install the required packages for the project.
Make sure you have Python installed on your system.
# Using venv (built-in for Python 3.3 and newer)
python -m venv venv
-
On Windows:
.\venv\Scripts\activate
-
On Unix or MacOS:
source venv/bin/activate
After activation, your terminal prompt should change to indicate the virtual environment is active.
pip install -r requirements.txt