Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 901 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 901 Bytes

Systematic Strategies


author: Joseph Chen
date: Jan 24th, 2023

This repo will show how to build practical strateqies (e.g., pairs trading) from scratch in the framework of QTrader.

Python environment

It is recommended to use conda to manage your environment. The following code creating a virtual environment named demo_strategy and installing the relevant packages:

> chmod +x ./preparations.sh 
> ./preparations.sh

Or you can manually input the following commands:

> conda create -n demo_strategy python=3.8
> conda activate demo_strategy
> pip install --force-reinstall git+https://github.com/josephchenhk/qtrader@master
> pip install --force-reinstall git+https://github.com/josephchenhk/qtalib@main
> pip install dill finta termcolor pyyaml func_timeout scipy statsmodels hyperopt jupyter seaborn