Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tnet/vector-bt

 
 

Repository files navigation

vector-bt

Superfast vectorized library for backtesting and trade optimization

Installation

pip install git+https://github.com/polakowo/vector-bt.git

Tutorial

Tutorial is provided through Jupyter nbviewer

Bitcoin Example

Exhaustive grid search over Bitcoin price.

Parameters: 1 year of 2h-period OHLC data, dual SMA crossover strategy with filter of 0.05 * STD and transaction fees of 0.0015 (Poloniex exchange). Heatmap below visualizes grid of SMA windows and the respective rates.

SMA-heatmap

Distribution of expectancy rates in SMA strategy.

SMA-dist

For comparison, here is the distribution of expectancy rates in random strategy.

random-dist

About

Vectorized library for backtesting and trade optimization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 91.8%
  • Python 8.2%