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.11b11-cp314-cp314-win_amd64.whl (103.5 kB view details)

Uploaded CPython 3.14Windows x86-64

octobot_tulipy-0.4.11b11-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.11b11-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.11b11-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.11b11-cp314-cp314-macosx_11_0_arm64.whl (81.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

octobot_tulipy-0.4.11b11-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.11b11-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.11b11-cp313-cp313-win_amd64.whl (101.2 kB view details)

Uploaded CPython 3.13Windows x86-64

octobot_tulipy-0.4.11b11-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.11b11-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.11b11-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.11b11-cp313-cp313-macosx_11_0_arm64.whl (81.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

octobot_tulipy-0.4.11b11-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.11b11-cp313-cp313-macosx_10_13_universal2.whl (156.1 kB view details)

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

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

Uploaded CPython 3.12Windows x86-64

octobot_tulipy-0.4.11b11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (351.3 kB view details)

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

octobot_tulipy-0.4.11b11-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.11b11-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.11b11-cp312-cp312-macosx_11_0_arm64.whl (81.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

octobot_tulipy-0.4.11b11-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.11b11-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.11b11-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 402fa1f794311ecc949739bf7aef3b78e91fc784bbcdb4a4dcdf68a37953cc1f
MD5 ec3cd667ec2f4509db4b47a29c3d27ae
BLAKE2b-256 e3a105b3b0728b06f2b894279a6545c453a4f459b9f2c896366b09e5f40a3768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8bb533579771e201ed811eadb6de3fb64cd3485c91939491e2c40cc70ae25d2d
MD5 efe9ddd592a571bc47dcc3b9b7b1fc4c
BLAKE2b-256 5374fa08870c68e8f1e4efd0edd13493ce3de242bb07e196aed0b934654379d5

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b11-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.11b11-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b95c76b4ea07f7cdbf8c1607000fc274bd565b62a647674f94c82c5b9a35d2a0
MD5 837e78d77627469abd471d052c44d454
BLAKE2b-256 318c0926463d453af9ed41cd00450fd831cb4aeeeab38e036006e0571b65da53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 9d9300774dfe28e7ca7ae8da9806b74903608bde524e1ae3ef040e6119bd411c
MD5 3408e02f0709c248640a98fc41290719
BLAKE2b-256 59b81d08ef4bb3fb294c69432b8461c326f6fbe62275f9c76481d7c9992ecccf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c99cc98db1d52188f7e74c032575a2722823bcd92b0a2aa2fde6be651ac69013
MD5 a78608db1830183187b3f584b9736785
BLAKE2b-256 3ba3256aab3291bc9668bb94dc4096335d368cd12ce3a9c6b90d8c5bf4b67a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1077d2c099272520718cac5cfee8ba09f445700b08384235c479273fbb1a80da
MD5 575cb0bdd45b5b3781c438bda8669e0c
BLAKE2b-256 468a72734dc0bddf978d02c54c74932ac76084005deb085195b817c2f4f192a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 5a19e8f2bd22dace885279ed00a6266c2de1c9fc5741cd386cc3758e6d0c874a
MD5 da9533ceb1378f596ee00b95b85d4498
BLAKE2b-256 2f8dd574a3ff6c5a84e07a0bdc06cc9d826c3145f53c124000ab1533ad4e6016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cff41c013987a6122387c10a41c1df33d9149047093622a8eeb404d155db36bd
MD5 c66b268298c78305c162cc4c5319acc7
BLAKE2b-256 877ae1b36a6e6f2afab354e38d6bd96ffedce3c91070d33a7f5a8e6b3fd4bf7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fb43d69bd104a8830bc503c7d050a50e52b99c768204e3a5619db84a455fc4b8
MD5 22b99c333ce375b88b61328cfb32025a
BLAKE2b-256 2079f5a476ed307b68717b6d77fca52fb89a5ba14ea213511e4a37d595768a90

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b11-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.11b11-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7b24703fb62784822510300e18c08ce399d88d52b6e81fffaf245c3414ada28
MD5 b2c6fc18893beb339b4beb00d4d42a1f
BLAKE2b-256 4d6f18fa3af3137072208579d6e09e445fcf5b0ac0d2beb67aeaeb357fbc978e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 d837578385b3d19fe2cad781f72f996dad6f32494fb306e512c499194f6eee39
MD5 e31015f7472afa241926bf51457837f7
BLAKE2b-256 524a47a8cc1e160d8f98d553ce2175ce525290ea9487e96a8fb78076a1e6f580

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d5fdc9bc7a63e947b2a3445f3b2c28b70bd620e521458a8faba2e6ee5d3c844
MD5 074669dd7cf7cc9121740908c14d8636
BLAKE2b-256 791009e5499dd4fe91a75bc16f967cca293ed980140d0e20caaa197eeb2ea74c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 efa5c46631059a43ba747f4a8a78e2ad224a049de3bcccfab0471811aec00719
MD5 d150733e001dc297f7e6242a5f8dafa6
BLAKE2b-256 39cf2e7aa6f9ef68bc586e98005aa7c3aebbf1e1d6314d1fc692af81c87e04ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 eec7e5fcef95e8a7f24bbb32a39247698ca26842d5876162388344c8948b54eb
MD5 cdbe054d3693e9545297b66431e6f673
BLAKE2b-256 a3898d2de7e3ba9328ea159653a4c56b2ca825512025ef452caacd803bc910bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 db1e37f26cbe31abcb692c1844034ae7bc882f2baa01ebee39f368a9240719b6
MD5 8fe67b20496b94c9b6729b0c1e53a60c
BLAKE2b-256 14a91e3e686445303c7571d4fa583c168058a1019e7a725e5269904f53e59581

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 96059969afc1515ce7bda7bbf5873c89a0558a1c469ff71b5ac8b069c7987db3
MD5 038ee085115dcd33aec39fdf58d81147
BLAKE2b-256 aeb9ab645643af0fe039c520d02b43c3e6d5f5dadff1c4d0a8c14587b3b76f29

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b11-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.11b11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d31f8af30888cecbfa7b1e9e50c50a3ce100193908476f4b665856ec91693007
MD5 debb6ea9bdf06ea01cfcf6c3367fe547
BLAKE2b-256 30420a6e7703ed794411cab8b638b7e9336249c81618c7085eaca4f9f6bd9f0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 60a8aa74bd402be32405cc888c4f3a607354a1ada8c2ce15b02f61cab37ee70b
MD5 5d1bfd5cec52ae0920ad3c8b2cdaf5e1
BLAKE2b-256 a7f54f80353f8643ec3f26dfe4984f50e535709fcec237b2693c9e4e470d2da2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ae9dce093282e2d922ef21b90f1707353b6e7f2aa4c492d3353fb416588905c
MD5 be62c2baf7b7a86b3ad71c0ff0c24a0d
BLAKE2b-256 ffcb358a6b332e6a79f12c91bce0c61229733c133739c5e3e18e94db47cd31d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 be39768f3a121aa30f418641f4f5288bc53930e01ecebb139e8f03908f447913
MD5 1e480b9f9aabaab741b314caad347bd7
BLAKE2b-256 55e4a10cbf70143cbe1b39a7aec2443f02f031d0ba246bc46776b31b135d5f49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b11-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 6101160dcd46a0818e7f48066cacc942e496c2ed1c8bb74a7252301fed7ebe32
MD5 c514a40ad524ca62bca86e699e10a6d5
BLAKE2b-256 1978a3b9f494ecb97095dc921759b77697333417f458b002b1dbcf9778cfe178

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