Skip to main content

A simple framework for fast and dirty backtesting

Project description

Introduction

fastbt is a simple and dirty way to do backtests based on end of day data, especially for day trading. The main purpose is to provide a simple framework to weed out bad strategies so that you could test and improve your better strategies further.

It is based on the assumption that you enter into a position based on some pre-defined rules for a defined period and exit either at the end of the period or when stop loss is triggered. See the [rationale]for this approach and the built itinassumptions.

If your strategy gets you good results, then check them with a full featured backtesting framework such as zipline or backtrader to verify your results. If your strategy fails, then it would most probably fail in other environments.

This is very much alpha

Quickstart

import pandas as pd
from datasource import DataSource

======= History

0.1.0 (2018-10-13)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fastbt, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size fastbt-0.1.0-py2.py3-none-any.whl (167.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size fastbt-0.1.0.tar.gz (1.1 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page