Skip to main content

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

PyPI version

Tests

(Coverage % is bad because tf graphs are not traced, only the @tf.function) codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensorflow-technical-indicators-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file tensorflow-technical-indicators-0.1.2.tar.gz.

File metadata

  • Download URL: tensorflow-technical-indicators-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for tensorflow-technical-indicators-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c2e11103b2a85d6588e8309fa211579f387f61061f75a2dd82ec77ccbe9d282c
MD5 634ffda3afd0494dadaadea90b54ecb5
BLAKE2b-256 58a6083554981351b9bd0c62bb621acf707d033b5f1f2070658a84f8d7e5ce14

See more details on using hashes here.

File details

Details for the file tensorflow_technical_indicators-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tensorflow_technical_indicators-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for tensorflow_technical_indicators-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6629dbbe016dcc10acfa252f2b6e818a976d42098205b0cbdea33e780d0640e4
MD5 f955e2214fd918cbbd3874552242a0a5
BLAKE2b-256 207303f62b003f827543f56e9157db92054b50d742a5734c92fee79b9bc07a2a

See more details on using hashes here.

Supported by

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