GithubHelp home page GithubHelp logo

iyyappana / candlestickpatterns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from npapapietro/candlestickpatterns

0.0 0.0 0.0 114 KB

ML pattern matching Python Library

License: MIT License

Python 99.91% Shell 0.09%

candlestickpatterns's Introduction

Build Status

CandleStickPatterns

ML pattern matching Python Library

Outline

This is a basic pattern matching library for Python 3.4+ that will read candlestick data (ohlc) and match common patterns. A test group of data is included, but for ease, sign up on Quandl.com for an account.

Example

Use their get() to retrieve a pandas DataFrame.

import candlestickpatterns
import quandl
from datetime import datetime

quandl.ApiConfig.api_key = 'your_key' #needed to make over 50 requests a day
t1 = datetime.now().strftime("%Y-%m-%d")
df = quandl.get('BCHARTS/BITSTAMPUSD',start_date = "2015-01-01",end_date=t1)

#Example function that returns triple star patterns into a dataframe
t=candlestickpatterns.pattern_generate(df)
candlestickpatterns.candlestick_plot(df,Bollinger_Bands=True,Highlight=t)

Plot Example:

The matched patterns are marked with long red lines. Bollinger Bands are also displayed.

alt text

candlestickpatterns's People

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.