nashquant / backtesthub

Backtest Hub provides a resourceful toolkit to run backtest simulations quick and easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backtesthub

Backtesthub is a simple and efficient backtest framework, built upon numpy and pandas to enable fast calculations, providing handy resources for quantitative researchers:

  1. Run backtests on signal based (systematic) strategies;
  2. Manage position/sizing [stocks and futures];
  3. Manage orders w/ commission & slippage schemes;
  4. Output backtest metrics for evaluation.

This project attempts to merge ideas from the two best python backtest frameworks imo [backtrader and backtesting], and introduces some ideas I think could've been implemented on both (e.g. broadcasting, base/asset separation, etc.)

Note: The project is still going under several improvements. Do not use it without reading the comments on code!! - Important simplyfing assumptions and inner workings are explained in detail there.

Setup

Conda

# Create a new environment
conda create -name backtest
source activate backtest
# Install libraries 
pip install -r requirements.txt
# Install setup.py and enjoy!
python setup.py install

About

Backtest Hub provides a resourceful toolkit to run backtest simulations quick and easy

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%