Technical Indicators as TensorFlow Graph Functions
Project description
tensorflow-technical-indicators
Technical Indicators as TF Graph Functions!
- Compatible with the rest of the tensorflow ecosystem
- Super fast as tensorflow graph code
pip install tensorflow-technical-indicators
(Coverage % is bad because tf graphs are not traced, only the @tf.function
)
Usage
import tensorflow_technical_indicators as tfti
# assuming your tensors have dimensions: (time step, features[ohlcv])
# where candles[:, 0] is open, candles[:, 1] high, etc..
candles = [...]
# you can get
c = tfti.features.close(candles)
rsi = tfti.rsi(candles=c, window_size=7, method='ema')
# you can also pass multidimensional tensors with (time step, features)
# where features = open, close
# to calculate some indicator for both open and close
result = tfti.indicator(candles, ..params..)
# in general
# tfti.<indicator>(parameters)
# check the list below to find indicator names
List of Indicators
from tensorflow_technical_indicators import <indicator>
Indicator | Implementation |
---|---|
SMA | simple_moving_average |
EMA | exponential_moving_average |
RSI | rsi |
MACD | macd |
Stochastic Oscillator | |
Bolliger Bands | |
Fibonacci Retractment | |
Ichimoku Cloud | |
Standard Deviation | |
Average Directional Index | |
More | To Come |
Need more indicators? Open up a pull request or open an issue :).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for tensorflow-technical-indicators-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e11103b2a85d6588e8309fa211579f387f61061f75a2dd82ec77ccbe9d282c |
|
MD5 | 634ffda3afd0494dadaadea90b54ecb5 |
|
BLAKE2b-256 | 58a6083554981351b9bd0c62bb621acf707d033b5f1f2070658a84f8d7e5ce14 |
Close
Hashes for tensorflow_technical_indicators-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6629dbbe016dcc10acfa252f2b6e818a976d42098205b0cbdea33e780d0640e4 |
|
MD5 | f955e2214fd918cbbd3874552242a0a5 |
|
BLAKE2b-256 | 207303f62b003f827543f56e9157db92054b50d742a5734c92fee79b9bc07a2a |