This is an installation guide for https://github.com/ChenLiangChong/back-test-python

1. Install Miniconda

Visit the Miniconda official website for download (please search for the installation method yourself).

miniconda download

After installation, please add the following paths to your environment variables (installation locations may vary):

1)C:\Users\Administrator\Miniconda3;

2)C:\Users\Administrator\Miniconda3\Scripts;

3)C:\Users\Administrator\Miniconda3\Library\bin

2. Create a New Environment (Optional)

Creating a new environment can avoid issues if installation fails, as you can simply delete the environment.

For reference, visit: Using conda to create and manage Python virtual environments

Open CMD or PowerShell:

conda create --name stock python=3.10
conda activate stock

3. Install Required Packages

Open CMD or PowerShell:

conda activate stock
pip install pandas
pip install lightweight-charts
pip install tkcalendar

4. Download Sample Data and Purchase History Data

This backtesting program uses historical data provided byfirstratedata.com

After unzipping, please rename the folder to futures_NQ or put the unzipped data into the futures_NQ folder.

If you download the sample data, you will get the following files: