Metadata-Version: 2.1
Name: tatspy
Version: 0.0.2
Summary: Technical Analysis Time Series for Machine Learning
Home-page: UNKNOWN
Author: Felipe Buchbinder
Author-email: felbuch@gmail.com
License: UNKNOWN
Download-URL: https://github.com/felbuch/tatspy/archive/v0.0.2.tar.gz
Keywords: STOCK,TECHNICAL ANALYSIS INDICATORS,HISTORICAL DATA,TIME SERIES,MACHINE LEARNING,ALGORITHMIC TRADING
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: datetime
Requires-Dist: investpy
Requires-Dist: ta

# tatspy
A package to calculate time series of technical analysis indicators for stocks

## Description

tatspy is a package you can use to get information such as:
* the historical prices of a stock over a given period
* the values of technical analysis indicators (such as MACD, bollinger bands etc.) over a given period.

It features not only american stocks, but also stocks from around the globe, featuring countries such as Brazil, Spain, and others.

## For example...

For example, you could use tatspy to get the daily values of the MACD, bollinger bands, parabolic SAR and ATR (among other) for Brazilian's oil giant Petrobras.

## How?

The tatspy package defines a class called `stock`.
It receives two attributes: the stock's `ticker` and its `country`
This stock has a couple of useful methods:

* `get_stock_historical_prices` : returns the historical prices (OHLC) of a stock for a given period, defined by the user.
* `get_technical_indicators` : returns a dataframe with time series for a set of technical analysis indicators
* `lag_indicators`: returns a dataframe with specified lags of technical analysis indicators, for Time Series analysis

The outputs of these methods are also saved as class attributes within each instance.

## Available Technical Analysis Indicators

At present, the following technical analysis indicators are made available by tatspy:

1. 'simple_moving_average' : simple moving average of stock price  
2. 'exponential_moving_average': exponential moving average of stock price  
3. 'RSI': Relative Strength Index  
4. 'bollinger_bands': Bollinger Bands  
5. 'bollinger_bands_indicator': Indicates if stock price close to bands, suggesting price reversal
6. 'MACD' : Moving Average Convergence-Divergence
7. 'stochastic': Stochastic Oscillator
8. 'VWAP': Volume Weighted Average Price
9. 'ATR': Average True Range
10. 'ADX': Average Directional Index
11. 'parabolic_SAR': Parabolic SAR
12. 'parabolic_SAR_indicator: Indicates if parabolic SAR suggests a price reversal upwards (+1) or downwards (-1)
13. 'TRIX': Triple Exponential Average

## Citations

I am grateful for the authors of the following packages, which have been very helpful in building tatspy:

* Alvaro Bartolome del Canto. (2018-2020). investpy - Financial Data Extraction from Investing.com with Python. https://github.com/alvarobartt/investpy.
* DarÃ­o LÃ³pez Padial (aka Bukosabino). ta. https://github.com/bukosabino/ta.



