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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

octobot_tulipy-0.4.11b10-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.11b10-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.11b10-cp312-cp312-win_amd64.whl (101.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4f0e168c866aafab7fe97a6783e77309a1625ecac5abbd6c33870730c7e67977
MD5 fd0062026bfab7510f8fd7ef47e109d1
BLAKE2b-256 c808ecc0922b364408fb860e378b8175addc6302da94f0dc194a107d3b193764

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 34df091c5166d025beda3501074d51f4556ca659969a4c007057dc284750da19
MD5 4e5f69650467926e12c3d90ccb363b81
BLAKE2b-256 de17caef136b0f6b11bb558d8fa687af26a58203b7f2ac87dec8f04d77edadc7

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b10-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.11b10-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09507eb17211a8ddeeeb353d61fb860c2d4bc67902b56c2dda11d34f50e266f3
MD5 15a3a4d473843953e121df4b79a00d10
BLAKE2b-256 244bc1bae53840a4247b4ef817b9313080ede5ca43582b17830cd10c81f61ed9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 183c4930a8c1163234a3b37cfe119013d3c6a1e8287e58d545236376806887e8
MD5 a0393889bd811e9fd3ec9dea011d1965
BLAKE2b-256 39379c7090a65746e046b2a2ebcab72308a4f0d0c6272ddb377d1964c4934691

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1124ae14e96b87233d02e62f7bcde09483b6fe5a6168b334f27e08d54309097f
MD5 db2197ba7a3bb56cba477c3448c796b8
BLAKE2b-256 9ecf373ac7311a90a94fa911632feb5c8d803ff847509eb4b6f18e52ae0969aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 cfeea4ef49a0e5659833685ec4a88d6ad75b4a1593cec8b8ed581257cbc45edc
MD5 2e73dc8b30a71a54f16e529ed937799c
BLAKE2b-256 852ce1eec72582cfbf591324b06428a7bb6bbe128abb7f5d9a26837591c60913

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 3af025e83264ffd3f8aa676b98050add38795e7cc6ccf6552526c3d00c098c63
MD5 a573eedd9cadba2519db41ffde93e5c8
BLAKE2b-256 7f168da3470d98be2d36e96d1c1b9c9de1b8ea0c392ac6e3e640fd63f0a6dc2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f7af93093fd4a94940dcba1f5000413c21f71117bbf7e324794e072555cefac2
MD5 3a05025554da160c8feb1901275e5580
BLAKE2b-256 4fcc5e35c2d7bb430354ccd6f473f2c1d0cd84776ec6d743f599046dd7a855e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6d70dd9d0f35eab717ce40cd7b89eee775902e0015a5fee4ba8bd304b06e7d6c
MD5 789eb388d3318154432d63617c10ffa1
BLAKE2b-256 8b30eafdec943da9d7e7deaca0f6dd0984a4052e69c88c83d97a26ca1114e744

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b10-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.11b10-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0a836975e91e0d44fae5d52e42c03b952662a783b10e800d0969f0d5cc4d8dc
MD5 1230a9b81102388e550adfa0b4dae797
BLAKE2b-256 6ab89e504b179693a9b168ab81afc8084877b1e3b2932ff1624258b7083186f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 f81620339328f8b7b765f9ad0927fd8a5e51ad824f14fcf611fdede786925221
MD5 1e8114e7d10e997c97d66780c511fb7a
BLAKE2b-256 2078981cfdd3a30e2b39f8ee7c4ef16aac72268c1175385b3b8af246beabab67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71b0ebe6a09a2db7218fc8a4063c4acb0723b6ab8c1e34ba1d0e7f772d831e0e
MD5 c675a61966b6278306e5a93669d28dda
BLAKE2b-256 42e208159b21efd347d1c5f131b3381660918225556b0b1c7d7d996cf17f9526

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 395f1b793b08bc4b4fa0f3ddd567efd4d40a8f6c17ac2df350bfa4a9a3716308
MD5 f24fd1f67f60d9e2d76df55e6775e593
BLAKE2b-256 293f946b51a8b3fc0fe559d62f5cfb7ca28f53b442734a79792fa436be6f51fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 fe2b60ee16b3d1ac5616bee5258cdaf68708f3e3db9ffd1ea2993570aa1b4a27
MD5 e8781e7f06deabed18f608b3447f3d2f
BLAKE2b-256 66a1077ab46b9954c149cffb0568148e2d592bd0cd73ff8291b80e687ab6cd28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bf8bffafe2812fb08d719336a5c579f2c13bbac0789f1e097487578f1327f313
MD5 53d1f46310b94b4b56ddd6df99038ade
BLAKE2b-256 e75798cb547a2f8b44c33cc41b5641764d92b8610bab7f6165ca43593d453869

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7b4316211ddab4763eb52114cfe1d12bf78feb697acf4e84d1ceb0e1583fcc86
MD5 74927f072c3d0babacc326e35c3782e8
BLAKE2b-256 5cc95c08e7702dd49c335f2494feca67ddc247820ec3832d30811ffd785afc4c

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b10-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.11b10-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89e37c95000dff054dfeb1fb3ccd216b8270631df354300cfc7a2de78ebd0297
MD5 745b95215a81a845533a0b4cd4b021f4
BLAKE2b-256 25f7152f18ffd2be36aac3619acc2637a964e1e913b77532fe1d4a85fc6c0988

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 5f4016dabb001e2b46cffd7ca93f11c9f0b70eb717dd94b188eae52c0e6ffd76
MD5 8d5b7e55dd8a5ec41b24d22a934bd587
BLAKE2b-256 1cf4bda8a76e6f3e25c891a9007cee13c2a3849ee6b2c062f4e94d01156c03d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6776d4309cdda4a1241ce68152c10612adeb0c0a1e11d85075f4a527aaacce47
MD5 0290dd93b61be33c90bc5cf0eae4306e
BLAKE2b-256 1381c590f4b5cf3fda5e685f9d44ec2389a7f56270b4b1dacdb1a44c8e2fb412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0ae7a52a1b81438c29067de791ef1d1d50a8ebf9b42b1fdb08cf3a7d70e443a9
MD5 8381fd792fe0332ef10785505286b9ee
BLAKE2b-256 3d782a0a65ce8ca9498cfa6f0f6de47ef17f5acd6f3b3a369ddb154184300dcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b10-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 db73cc47acc718c377dea84d7548375f1824ae06ca427195bac5f197b6107d7c
MD5 8eced72af5dd56e5eaf1e674b267b6a5
BLAKE2b-256 02271c2ebf8b5246f47840e83510aef1b6b559bd6a70e08c418dd2bc52394acc

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