josephchenhk / qtrader_strategies

Demonstrative examples for developing quantitative and systematic strategies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Demonstrative examples for developing quantitative and systematic strategies

License:Apache License 2.0


Languages

Language:HTML 97.3%Language:Jupyter Notebook 2.5%Language:Python 0.1%Language:Shell 0.0%