Giter Club home page Giter Club logo

ohlcvish's Introduction

ohlcvish

ohlcvish takes OHLCV data, generate multiple technical indicators on it and the corresponding Buy-Hold-Sell signal.

Usage

To use ohlcvish you need your OHLCV data to be in a pandas.DataFrame like this:

import pandas as pd

btc = pd.read_csv("BTCUSD.csv")
print(btc.head())
      date    open    high     low   close      volume
2014-11-28  363.59  381.34  360.57  376.28  3220878.18
2014-11-29  376.42  386.60  372.25  376.72  2746157.05
2014-11-30  376.57  381.99  373.32  373.34  1145566.61
2014-12-01  376.40  382.31  373.03  378.39  2520662.37
2014-12-02  378.39  382.86  375.23  379.25  2593576.46

Use ohlcvish() function to get all signals (1=buy, 0=hold, -1=sell):

btc = ohlcvish(btc)
print(btc)
      date  macd  rsi  stoch  adx  aroon  bbands  sar  ma
2020-07-13     0    0      0    0      0       0    0   0
2020-07-14     0    0      0    0      0       0    0   0
2020-07-15     0    0      0    0      0       0    0   0
2020-07-16     0    0      0    0      0       0    0   0
2020-07-17    -1    0      0    0      0       0    0  -1
2020-07-18     0    0      0    0      0       0    0   0
2020-07-19     1    0      0    0      0       0    0   0
2020-07-20    -1    0      0    0      1       0    0   0
2020-07-21     1    0      0    0      0       0    1   0
2020-07-22     0    0      0    0      0      -1    0   1
2020-07-23     0    0      0    0      0       0    0   0
2020-07-24     0    0      0    0      0       0    0   0
2020-07-25     0    0     -1    0      0      -1    0   0
2020-07-26     0    0      0    0      0       0    0   0
2020-07-27     0    0      0    0      0       0    0   0
2020-07-28     0    0      0    0      0       0    0   0
2020-07-29     0    0      0    0      0       0    0   0
2020-07-30     0    0      0    0      0       0    0   0
2020-07-31     0    0      0    0      0       0    0   0
2020-08-01     0    0      0    0      0      -1    0   0

ohlcvish's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.