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.

Source Distribution

fastbt-0.1.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastbt-0.1.0-py2.py3-none-any.whl (167.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fastbt-0.1.0.tar.gz.

File metadata

  • Download URL: fastbt-0.1.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for fastbt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b13c251cd376688ddf6ce9f92179d044eb92a5f197ff484e44586cc52a1732d9
MD5 fd311e9f6af579bf0bd20da858ee402b
BLAKE2b-256 72451e9294642d020f568923771f6d9c6fd3222553e654a872ba7fc3154cd61c

See more details on using hashes here.

File details

Details for the file fastbt-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: fastbt-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 167.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for fastbt-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d2074eabb13c642143160b9af8e0a8129f6d7b5385d0ef9a5fcd6bfab2ae58cf
MD5 6a011823e7a0f6ab8ccacee2ef720e1f
BLAKE2b-256 92c57ccc7fd9860c29f2ac2562de411d502994dfa0589c8c1484dae484bbf94c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page