Skip to main content

techfin : A package for technical analysis

Project description

A package that implements technical indicators and plotting functions of them

Indicators implemented in the package

  1. Simple Moving Average
  2. Exponential Moving Average
  3. Bollinger Bands
  4. Simple Relative Strength Index
  5. Exponential Relative Strength Index
  6. Moving Average Convergence Divergence
  7. Money Flow Index

Installation

  • Make sure you have numpy, pandas, yfinance, matplotlib installed

  • Run Following command to install the package

  pip install techfin

How to import

  • Run Following command to import
  import techfin

  # The following packages are also necessary
  import pandas as pd
  import numpy as np
  import yfinance as yf
  import matplotlib.pylot as plt

Example

  data = yf.download('HDFC.NS', start=2021-01-01, end=2022-01-01, interval='1d', auto_adjust=True)
  
  techfin.plot_Close(data)        # to plot close price of data
  
  n = [10, 50, 100]
  data_SMA = techfin.SMA(data, n) # to calulate simple moving average
  techfin.plot_SMA(data_SMA, n)   # to plot Simple moving average on the Close price graph

List of Functions

Sr. Function Discription
1. plot_Close (data) Plot Close Price
2. SMA (data, n) Calculate Simple Moving Average
3. plot_SMA (data, n) Plot Simple Moving Average
4. EMA (data, n) Calculate Exponential Moving Average
5. plot_EMA (data) Plot Exponential Moving Average
6. BollingerBands (data, n, factor) Calculate Bollinger Bands
7. plot_BollingerBands (data) Plot Bollinger Bands
8. Simple_RSI (data, n) Calculate Simple RSI
9. plot_S_RSI (data, overbought, oversold) Plot Simple RSI, highlighting overbought & oversold zones
10. Exponential_RSI (data, n) Calculate Exponential RSI
11. plot_E_RSI (data, overbought, oversold) Plot Exponential RSI, highlighting overbought & oversold zones
12. MACD (data, longEMA, shortEMA, signalEMA) Calculate MACD indicator
13. plot_MACD (data) Plot MACD indicator along with bars for Convergence/Divergence
14. Money_Flow_Index (data, n) Calculate Money Flow Index
15. plot_MFI (data, overbought, oversold) Plot MFI, highlighting overbought & oversold zones

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

techfin-0.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

techfin-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file techfin-0.0.1.tar.gz.

File metadata

  • Download URL: techfin-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.3

File hashes

Hashes for techfin-0.0.1.tar.gz
Algorithm Hash digest
SHA256 52433c22fbad73a176b1d026829dc6100b83cb15395e1c9ba0ea486ec28958bf
MD5 900e114eb2fafc3f90660beb913dac48
BLAKE2b-256 3753169ff6f8365dc9be96fe2d6f9edbbc5c525b2012fecc674a4b36013c3d2b

See more details on using hashes here.

File details

Details for the file techfin-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: techfin-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.3

File hashes

Hashes for techfin-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4cf708d8897637e286329e21470d2877e2b93de5c0721c3b3b6c2488ea9d81cc
MD5 1aa1ca5ea8707767367138b53d01e2ff
BLAKE2b-256 178ebf3d28ee2cef98d0a52affda18c31abf648a933badae4c6401c4d8470b79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page