This is an installation guide for https://github.com/ChenLiangChong/back-test-python
Visit the Miniconda official website for download (please search for the installation method yourself).
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
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
Open CMD or PowerShell:
conda activate stock
pip install pandas
pip install lightweight-charts
pip install tkcalendar
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: