Skip to main content

Technical Indicators for Financial Analysis

Project description

Technical

This is a collection of technical indicators collected or developed for Freqtrade as well as utilities such as timeframe resampling.

What does it do for you

We basically provide you with easy to use indicators, collected from all over github and custom methods. Over time we plan to provide a simple API wrapper around TA-Lib, PyTi and others, as we find them. So you have one place, to find 100s of indicators.

Custom indicators

  • Consensus - an indicator which is based on a consensus model, across several indicators you can easily customize these. It is based on the TradingView buy/sell graph. - MovingAverage Consensus - Oscillator Consensus - Summary Consensus
  • vfi
  • mmar
  • madrid_sqz
  • stc
  • ichimoku cloud
  • volume weighted moving average
  • laguerre
  • vpci
  • trendlines, 2 different algorithms to calculate trendlines
  • fibonacci retracements
  • pivots points
  • TKE Indicator - Arithmetical mean of 7 oscilators
  • Volume Weighted MACD - Volume Weighted MACD indicator
  • RMI - Relative Momentum indicator
  • VIDYA - Variable Index Dynamic Average
  • MADR - Moving Average Deviation Rate
  • SSL - SSL Channel

Utilities

  • resample - easily resample your dataframe to a larger interval
  • merge - merge your resampled dataframe into your original dataframe, so you can build triggers on more than 1 interval!

Wrapped Indicators

The following indicators are available and have been 'wrapped' to be used on a dataframe with the standard open/close/high/low/volume columns:

  • chaikin_money_flow - Chaikin Money Flow, requires dataframe and period
  • accumulation_distribution - requires a dataframe
  • osc - requires a dataframe and the periods
  • aroon - dataframe, period, field
  • atr - dataframe, period, field
  • atr_percent - dataframe, period, field
  • bollinger_bands - dataframe, period, stdv, field, prefix
  • cmo - dataframe, period, field
  • cci - dataframe, period
  • williams percent
  • momentum oscilator
  • hull moving average
  • ultimate oscillator
  • sma
  • ema
  • tema

We will try to add more and more wrappers as we get to it, but please be patient or help out with PR's! It's super easy, but also super boring work.

Usage

to use the library, please install it with pip

pip install technical

To get the latest version, install directly from github:

pip install git+https://github.com/freqtrade/technical

and than import the required packages

from technical.indicators import accumulation_distribution, ...
from technical.util import resample_to_interval, resampled_merge

# Assuming 1h dataframe -resampling to 4h:
dataframe_long = resample_to_interval(dataframe, 240)  # 240 = 4 * 60 = 4h

dataframe_long['rsi'] = ta.RSI(dataframe_long)
# Combine the 2 dataframes
dataframe = resampled_merge(dataframe, dataframe_long, fill_na=True)

"""
The resulting dataframe will have 5 resampled columns in addition to the regular columns, 
following the template resample_<interval_in_minutes>_<orig_column_name>.
So in the above example:
['resample_240_open', 'resample_240_high', 'resample_240_low','resample_240_close', 'resample_240_rsi']
"""

Contributions

We will happily add your custom indicators to this repo! Just clone this repository and implement your favorite indicator to use with Freqtrade.

Have fun!

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

technical-1.2.1.tar.gz (34.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

technical-1.2.1-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file technical-1.2.1.tar.gz.

File metadata

  • Download URL: technical-1.2.1.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for technical-1.2.1.tar.gz
Algorithm Hash digest
SHA256 1afb322af4454eed6280fe36e38b6b0dd30b31d1b6992a977eaa41042ba16341
MD5 e624d0468a97e291dd2c8ea5142566f8
BLAKE2b-256 10fca50a4401011f21f82627d8edddd4dbb5c61b97f3a10204a7017838a13e21

See more details on using hashes here.

File details

Details for the file technical-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: technical-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for technical-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 758418374e5c0e36a41ac42631708ac3b467014949a827ad88200eb757518361
MD5 c9e5e36a32ec9588479e0b4072e7738f
BLAKE2b-256 8cef678a525f76cf6771fc80e4af006ef410ea54bfe8d317d9d62c62c4c2d57c

See more details on using hashes here.

Supported by

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