Giter Site home page Giter Site logo

priestd09 / backtrader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mementum/backtrader

0.0 1.0 0.0 2.09 MB

Python Backtesting library for trading strategies

Home Page: http://www.backtrader.com

License: GNU General Public License v3.0

Python 100.00%

backtrader's Introduction

backtrader

PyPi Version PyPi Monthly Donwloads Travis-ci Build Status License Documentation Status

BackTesting platform written in Python to test trading strategies.

Documentation

The blog:

Read the full documentation at readthedocs.org:

List of built-in Indicators (88)

Python 2/3 Support

  • Python 2.6/2.7
  • Python 3.2/3.3/3.4

Compatibility is tested during development with 2.7 and 3.4

The other versions are tested automatically with Travis.

Installation

From pypi:

  • pip install backtrader

  • pip install backtrader[matplotlib]

    If matplotlib is not installed and you wish to do some plotting

From source:

  • Place the backtrader directory found in the sources inside your project

    One dependency exists: six

Features:

  • Bar by Bar (next) operation or batch mode (once) operation
  • Indicators and the addition of any custom end-user developed one
  • Strategies
  • Data Feeds from Online Sources or CSV Files (other forms could be implemented)
  • Data Feeds with different timeframes
  • Data Feed Resampling
  • Data Feed Replaying
  • A Broker implementation supporting
    • Commision schemes for stocks and derivatives
    • Orders: AtClose, AtMarket, AtLimit, Stop, StopLimit
  • Position Sizers for the automatic determination of the stake
  • Optimization of Strategies
  • Plotting

Version numbering

X.Y.Z.I

  • X: Major version number. Should stay stable unless something big is changed like an overhaul to use numpy
  • Y: Minor version number. To be changed upon adding a complete new feature or (god forbids) an incompatible API change.
  • Z: Revision version number. To be changed for documentation updates, small changes, small bug fixes
  • I: Number of Indicators already built into the platform

Alternatives

If after seeing the docs (see also the example below) you feel this is not your cup of tea, you can always have a look at similar Python platforms:

backtrader's People

Contributors

mementum avatar nicoddemus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.