ZackChang007 / worldquant-brain-simulator

This is a simulator to help with backtesting your alphas offline for platform WorldQuant Brain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WorldQuant BRAIN Simulator

Help Wanted: See issue #3 for more details.

Introduction

This is a simulator to help with backtesting your alphas offline for platform WorldQuant Brain

Demo

Some problems exist (data, expressions, procedure), so the results are still different from the platform's.

insample

insample_platform

Totol time cost is about 20 minutes on one core, target is 5 minutes per core.

Project Structure

worldquant-brain-simulator/
|-- alpha
|-- data
|   |-- stock_snowball_us.db
|   `-- stock_snowball_us_full.db.tar.gz
|-- history
|-- LICENSE
|-- README.md
|-- requirements.txt
|-- src
|   `-- simulator
|       |-- alpha101.py
|       |-- database.py
|       |-- expression.py
|       |-- fetch.py
|       |-- __init__.py
|       |-- settings.yaml
|       `-- simulate.py
`-- test

Todos

  • Too slow, is it possible for Python to be faster?

  • Examine the data => There are truly some problems with data from Snowball. Differences detected when computing the vwap.

  • Examine the procedure

  • Examine the fast-expression implementation

  • Add docs to code

  • Do not use string date

  • Change date and next_day to prev_day and today

  • Truncation correctness (current not necessarily working)

  • Implement multiprocessing

References

About

This is a simulator to help with backtesting your alphas offline for platform WorldQuant Brain

License:GNU General Public License v3.0


Languages

Language:Python 100.0%