Skip to main content

Financial Technical Analysis Indicator Library. Python bindings for https://github.com/TulipCharts/tulipindicators

Project description

tulipy

Forked by Drakkar-Software for the only purpose of keeping dependencies version up to date.

Python bindings for Tulip Indicators

Tulipy requires numpy as all inputs and outputs are numpy arrays (dtype=np.float64).

Installation

You can install via pip install OctoBot-Tulipy. If a wheel is not available for your system, you will need to pip install Cython numpy to build from the source distribution. When building from source on Windows, you will need the Microsoft Visual C++ Build Tools installed.

Usage

import numpy as np
import tulipy as ti
ti.TI_VERSION
'0.8.4'
DATA = np.array([81.59, 81.06, 82.87, 83,    83.61,
                 83.15, 82.84, 83.99, 84.55, 84.36,
                 85.53, 86.54, 86.89, 87.77, 87.29])

Information about indicators are exposed as properties:

def print_info(indicator):
    print("Type:", indicator.type)
    print("Full Name:", indicator.full_name)
    print("Inputs:", indicator.inputs)
    print("Options:", indicator.options)
    print("Outputs:", indicator.outputs)
print_info(ti.sqrt)
Type: simple
Full Name: Vector Square Root
Inputs: ['real']
Options: []
Outputs: ['sqrt']

Single outputs are returned directly. Indicators returning multiple outputs use a tuple in the order indicated by the outputs property.

ti.sqrt(DATA)
array([ 9.03271831,  9.00333272,  9.10329611,  9.11043358,  9.14385039,
        9.11866218,  9.1016482 ,  9.16460583,  9.19510739,  9.18477   ,
        9.24824308,  9.30268778,  9.32148057,  9.36856446,  9.34291175])
print_info(ti.sma)
Type: overlay
Full Name: Simple Moving Average
Inputs: ['real']
Options: ['period']
Outputs: ['sma']
ti.sma(DATA, period=5)
array([ 82.426,  82.738,  83.094,  83.318,  83.628,  83.778,  84.254,
        84.994,  85.574,  86.218,  86.804])

Invalid options will throw an InvalidOptionError:

try:
    ti.sma(DATA, period=-5)
except ti.InvalidOptionError:
    print("Invalid Option!")
Invalid Option!
print_info(ti.bbands)
Type: overlay
Full Name: Bollinger Bands
Inputs: ['real']
Options: ['period', 'stddev']
Outputs: ['bbands_lower', 'bbands_middle', 'bbands_upper']
ti.bbands(DATA, period=5, stddev=2)
(array([ 80.53004219,  80.98714192,  82.53334324,  82.47198345,
         82.41775044,  82.43520292,  82.51133078,  83.14261781,
         83.53648779,  83.8703237 ,  85.28887096]),
 array([ 82.426,  82.738,  83.094,  83.318,  83.628,  83.778,  84.254,
         84.994,  85.574,  86.218,  86.804]),
 array([ 84.32195781,  84.48885808,  83.65465676,  84.16401655,
         84.83824956,  85.12079708,  85.99666922,  86.84538219,
         87.61151221,  88.5656763 ,  88.31912904]))

If inputs of differing sizes are provided, they are right-aligned and trimmed from the left:

DATA2 = np.array([83.15, 82.84, 83.99, 84.55, 84.36])
# 'high' trimmed to DATA[-5:] == array([ 85.53,  86.54,  86.89,  87.77,  87.29])
ti.aroonosc(high=DATA, low=DATA2, period=2)
array([  50.,  100.,   50.])

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

octobot_tulipy-0.4.11b1-cp314-cp314-win_amd64.whl (103.5 kB view details)

Uploaded CPython 3.14Windows x86-64

octobot_tulipy-0.4.11b1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (344.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

octobot_tulipy-0.4.11b1-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (347.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

octobot_tulipy-0.4.11b1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (341.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ i686manylinux: glibc 2.5+ i686

octobot_tulipy-0.4.11b1-cp314-cp314-macosx_11_0_arm64.whl (81.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

octobot_tulipy-0.4.11b1-cp314-cp314-macosx_10_15_x86_64.whl (87.6 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

octobot_tulipy-0.4.11b1-cp314-cp314-macosx_10_15_universal2.whl (156.4 kB view details)

Uploaded CPython 3.14macOS 10.15+ universal2 (ARM64, x86-64)

octobot_tulipy-0.4.11b1-cp313-cp313-win_amd64.whl (101.1 kB view details)

Uploaded CPython 3.13Windows x86-64

octobot_tulipy-0.4.11b1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (345.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

octobot_tulipy-0.4.11b1-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (350.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

octobot_tulipy-0.4.11b1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (342.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ i686manylinux: glibc 2.5+ i686

octobot_tulipy-0.4.11b1-cp313-cp313-macosx_11_0_arm64.whl (81.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

octobot_tulipy-0.4.11b1-cp313-cp313-macosx_10_13_x86_64.whl (87.3 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

octobot_tulipy-0.4.11b1-cp313-cp313-macosx_10_13_universal2.whl (156.0 kB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

octobot_tulipy-0.4.11b1-cp312-cp312-win_amd64.whl (101.3 kB view details)

Uploaded CPython 3.12Windows x86-64

octobot_tulipy-0.4.11b1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (351.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

octobot_tulipy-0.4.11b1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (356.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

octobot_tulipy-0.4.11b1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (349.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ i686manylinux: glibc 2.5+ i686

octobot_tulipy-0.4.11b1-cp312-cp312-macosx_11_0_arm64.whl (81.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

octobot_tulipy-0.4.11b1-cp312-cp312-macosx_10_13_x86_64.whl (87.7 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

octobot_tulipy-0.4.11b1-cp312-cp312-macosx_10_13_universal2.whl (156.8 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

File details

Details for the file octobot_tulipy-0.4.11b1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3140d70dce58837738026ec1659d91f151f6aeaa443fd02ef9fe7f34277a4b69
MD5 5c4c22e4a00543396d3d81959a76451d
BLAKE2b-256 03bf9e687a89cb8ba504dcf6a9fb995a5343441b9e8d56250ecb5dd0e837f2c2

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2982dac260990ddd0c45a43f5698d1ed50521e007db2a6e4a5460605e4be6db4
MD5 a7fa70aaa26259bef245f4c86b24c99d
BLAKE2b-256 f37532b7b6dc3a3d0bdd399505012de697dc64339a2d8da67be761b0771c361e

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55c545b01c8bb02ea91725fbf8844f65d2a2cf61246b7840775cf86363fde4d7
MD5 aa2ae5e1f5c97bb71d2d6178fcd5e70b
BLAKE2b-256 d0ca82037045d18ca87d2bf40f04f0ec56ad417004346176d4f86de8e077b78d

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 7b0a2bd8e2c4887446212ee98d186dfd4f17b8d351fca97b98f34d55334932ec
MD5 647b6d8cd49e96fb2492f3c403651881
BLAKE2b-256 0097f3aa09ded6e47eba75e985a0a3d24bbe9e080cf492c5601aa55b92762772

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 539561d00b78a202e9648a26cbea050ccc768b5662086bb12dd518e710687be4
MD5 b9cbb0e578049aba7fd9a34bf9a98992
BLAKE2b-256 44144ed042583837fda25b1e5d17c323cd3401557e625b4e7e3e93b9e36b5ee5

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 b55a2f1b441a9ca76979d96dd4beac417e9a60394e62c53b42acdc7a258da1ca
MD5 22114dd4c82c5560cb11bdfc9a78c504
BLAKE2b-256 d9572a47b3e4209fea742f9d21aeaeca3af6dc3032c32693ff5365530c2d2835

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 b85e0465f92c8b6aa45b2fe699370ed2e82eed0e68deae58f61b7ff7bc904664
MD5 c1f9b76c58cff710f88c8aeb8e9e040c
BLAKE2b-256 bdf0faf89b99615d4471aca6455ced2053812f0631f15b123a14681fa8c9b8c4

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dcbcb358433cdbc1e2a8e11a921901ae4c519d5bddd7c2f7a20a5fe0b7962cbc
MD5 c2617ccbc372314492a42e41ee774d8f
BLAKE2b-256 8d84885e65ee331d4a75de5e35fe255ec61e0faaac88c420954eebca5c81a654

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 af38db5226207bd9684ededc353e317c4f352d532a155e8213ffcd70eb3051ba
MD5 1fb617fd90be23f07b6b011ad41bee49
BLAKE2b-256 d4af8485d8a615425fa2415934999d491a3cf91b70212c48062140d4a999dfc2

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc5291173fe576cbca03fd4498a74859c37fecb3f05ecc39c0c91d5110c149b4
MD5 5af485daf2d2f1a1dc522c5045f44bde
BLAKE2b-256 f3ac7b096fffb90db050d87d4863323ab331a59fe4bf80a4a02b06c24ddf0e72

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 0ba0ba36d6eede4ee2cca335a06096918da22ffc1408620151e9d0b7354dad0c
MD5 6d69582a3a5aee67b66e65dd7e4761db
BLAKE2b-256 d315a1db622345c27064a33a6d7a174bd4f67a3d5ad795e1e92885f59fb343b8

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5da97e1f36958474708368ee2283e7a42ebb45290db443905a26dc64fcacdbc7
MD5 6b4e79a98dd3a9a6ddec3aa16025a882
BLAKE2b-256 c9fba08b05f16675c84bc964411bea367166e06d5a26a3c9cddc14313b24649c

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5a0061956f1827a2cbad00f10d664c170ba8564001105c4c8533db816e931cd9
MD5 2a60861902056b2cc80fd710f5afa1bf
BLAKE2b-256 c4cfda2f3fcb97a5664579fac1228db47e8a4be8e3af9ee251d85e8bcd09c7dc

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 32e94c8adbb9716b57f6b1fa555b4c877a9c8b976a502c993ee300cac18e559e
MD5 b02c013ae89aae91d9778cd67669a194
BLAKE2b-256 7099a590720f27a876609361fe707746daa1e15abfb1eafc55b73f96b0445bca

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9e7209eba45ce4185363e15cf3345994e5a7904f4832a2121f957adc70f0ffe
MD5 a731d29b494042d68d54e40b437dd779
BLAKE2b-256 f88170f50d511689f1652920500d9ddc52bdc00bedb6afc736200fc919eaeb28

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 41bf16b28b447099830cd0baf934aeedce3209488f8adde692593a0db65af7b2
MD5 cc6a001ca3b483cb2bce90184a96e33a
BLAKE2b-256 222eebde8c830a8f9b1cee95ef30d4ad75460fb06ccafec8b519b27b056653b0

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fdd31df502f5e35a6137a17887bc93e82645898b564f65bdffe2285f826450f5
MD5 ae54410777c79be6b281d47bbcb51d75
BLAKE2b-256 8aa05004a297740a0ca28319e15aedd6f6564ea35651f1f7ac1a472aa34278da

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 fb2a9f1b1600e5667729747f7bfb15527f41f93d60433021e44d08c30f1e0f86
MD5 2edf356e67b7e7149ced9baa4a0d0bf2
BLAKE2b-256 3a1deeda60e27b5d6e28faf4c69b40c3a645efb711171f5f92e060c9d3625556

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35ce9326b7c7d37d0f748ca2617ce810cf80d9b7776aaa85d42e857d2d11215b
MD5 210e28cd21c021e802cae3ccf57bb7ca
BLAKE2b-256 4ec039f69e1d9571990ad328940a95ad6d9cc19050272d4bc2cbcfaad31407ec

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c2139ddc066dbd66471887811bb49d04d4747362d46a3e53cc1a3900e09f95db
MD5 c8e9e34bd983abe02817ebc9dbce1bdd
BLAKE2b-256 cbfefb3c6bb4e19a456fef66c5dc836bd8cd74a58b7f3a59fe5a00680d2c122a

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b1-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b1-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 5e3d480d1f9e434d801cd4d500e10d486ec36da8cda1133e65cf8bdd89465af1
MD5 6e38d89403716c2319a965591de91aac
BLAKE2b-256 e41e254e31cee43b40b2b97176c9e978721e55ea8b50c680ef23647388c5b9eb

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