Skip to main content

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 kunalkini15@gmail.com

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 kunalkini15@gmail.com

Release files for technical-indicators-lib 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for technical-indicators-lib 0.0.2
File Size Uploaded
technical_indicators_lib-0.0.2.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for technical-indicators-lib 0.0.2
File Interpreter ABI Platform
technical_indicators_lib-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 33.5 kB

Release files / technical_indicators_lib-0.0.2.tar.gz

Download URL technical_indicators_lib-0.0.2.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8a93778ea9150eabcdddfd4a1d47b0f5aeacf5ee5b9e757f6c78e284d7dbf2b7
BLAKE2b-256 checksum
How to use checksums
db3ab2e7764d44b8e9e15702813e5c78eafd932a77f975dd58d2388c35c56342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Release files / technical_indicators_lib-0.0.2-py3-none-any.whl

Download URL technical_indicators_lib-0.0.2-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a8181b489a621d5f1a8c00796c61bc38ac0a0055af463fca88c413ba481f4d1
BLAKE2b-256 checksum
How to use checksums
96acd14aba7847effa187a54131cf845d8e89c8bbe517c16715df4c51fd91eb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page