Git Product home page Git Product logo

technical_indicators_lib's Introduction

Technical Indicators

Technical indicators library provides means to derive stock market technical indicators.

Provides multiple ways of deriving technical indicators using raw OHLCV(Open, High, Low, Close, Volume) values.

Supports 35 technical Indicators at present.

Provides 2 ways to get the values,

  1. You can send a pandas data-frame consisting of required values and you will get a new data-frame with required column appended in return.

    Note: make sure the column names are in lower case and are as follows,

     - Open values should be named 'open'
    
     - High values should be named 'high'
    
     - Low values should be named 'low'
    
     - Close values should be named 'close'
    
     - Volume values should be named 'volume'
    
  2. You can send numpy arrays or pandas series of required values and you will get a new pandas series in return.

Installation

pip install  technical_indicators_lib

Usage

# import dependencies
import pandas as pd
import numpy as np

# importing an indicator class
from technical_indicators_lib import OBV

# instantiate the class
obv = OBV()

# load data into a dataframe df
df = pd.read_csv("./test/data/test_data.csv")

# Method 1: get the data by sending a dataframe
df = obv.get_value_df(df)


# Method 2: get the data by sending series values
obv_values = obv.get_value_list(df["close"], df["volume"])

Documentation

https://technical-indicators-library.readthedocs.io/en/latest/

Development

Want to contribute?

Great. Follow these steps,

git clone https://github.com/kunalkini015/technical-indicators.git

cd technical_indicator_lib

pip install -r requirements.txt

then you are good to go. You can create a pull request or write to me at [email protected]

Todo

  • Divide indicators into separate modules, such as trend, momentum, volatility, volume, etc.

  • add tests.

  • Add more indicators.

Credits

Developed by Kunal Kini K, a software engineer by profession and passion.

If you have any comments, feedbacks or queries, write to me at [email protected]

technical_indicators_lib's People

Contributors

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