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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac452feb0895579d15a329d54953ce3c807b5d628d8214260a5a9de13ffda17 |
|
MD5 | 22b6579a3809b0ba10b207281e4d431e |
|
BLAKE2b-256 | 4ab5e47250dd18d87482879cf69a29bffe29c23205720eb77e873f4d6a12de31 |
Close
Hashes for tensorflow_technical_indicators-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cb66c5cbb3f72eb4b5fece376d0fe00ea2e0bbb4ff4bae7e3fe3d1149ea5502 |
|
MD5 | 522de50958e26cdac30ce631dd45c59e |
|
BLAKE2b-256 | e2701ec2b0a0bf39bbb0c67b0983ebe1958fceba1560a03c1d239281ec2ed511 |