Skip to content

Different indicators developed or collected for the Freqtrade

License

Notifications You must be signed in to change notification settings

MyBourse/technical

 
 

Repository files navigation

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

  1. 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

  2. vfi

  3. mmar

  4. madrid_sqz

  5. stc

  6. ichimoku cloud

  7. volume weighted moving average

  8. laguerre

  9. vpci

  10. trendlines, 2 different algorithms to calculate trendlines

  11. fibonacci retracements

  12. pivots points

Utilities

  1. resample - easily resample your dataframe to a larger interval
  2. 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:

  1. chaikin_money_flow - Chaikin Money Flow, requires dataframe and period
  2. accumulation_distribution - requires a dataframe
  3. osc - requires a dataframe and the periods
  4. aroon - dataframe, period, field
  5. atr - dataframe, period, field
  6. atr_percent - dataframe, period, field
  7. bollinger_bands - dataframe, period, stdv, field, prefix
  8. cmo - dataframe, period, field
  9. cci - dataframe, period
  10. williams percent
  11. momentum oscilator
  12. hull moving average
  13. ultimate oscillator
  14. sma
  15. ema
  16. 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!

About

Different indicators developed or collected for the Freqtrade

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%