A package that implements technical indicators and plotting functions of them
Indicators implemented in the package
- Simple Moving Average
- Exponential Moving Average
- Bollinger Bands
- Simple Relative Strength Index
- Exponential Relative Strength Index
- Moving Average Convergence Divergence
- 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 |
Metadata
Release files for techfin 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| techfin-0.0.1.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| techfin-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / techfin-0.0.1.tar.gz
| Download URL | techfin-0.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52433c22fbad73a176b1d026829dc6100b83cb15395e1c9ba0ea486ec28958bf
|
|
BLAKE2b-256 checksum How to use checksums |
3753169ff6f8365dc9be96fe2d6f9edbbc5c525b2012fecc674a4b36013c3d2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|
Release files / techfin-0.0.1-py3-none-any.whl
| Download URL | techfin-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cf708d8897637e286329e21470d2877e2b93de5c0721c3b3b6c2488ea9d81cc
|
|
BLAKE2b-256 checksum How to use checksums |
178ebf3d28ee2cef98d0a52affda18c31abf648a933badae4c6401c4d8470b79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|