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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 257cd84405cd740e5fa71635064a9f965c681220517b6858c6c00f1d54b730f9
MD5 b475210bc0d2fafc6c8a87d6ae04a31f
BLAKE2b-256 f1db6eabcd054d273134b993eb2ccb905e5d98d621e15ac4a9463249e117dcfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bebb0ba446c04c73aed14a0cd40fd1c21bbdc3e104c66ca677d71ea1be618807
MD5 55517b9cb6d34eb3f6324956ff8e0472
BLAKE2b-256 a1a3ffc9dd6c7e6617149bb3f30f80d32435ecf51e77fec1ffe11736f365a34a

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b9-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.11b9-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 355eb2711327180e58c332fa77ec1547c78c3378db7905b9774dfc2fac0c8c99
MD5 71190285a5a19f01b22c0949422bc000
BLAKE2b-256 100728f0e41b6a9b5877a7c9a8ada92339e7ef1555a0ae3b47131af969785600

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 89fc109e87d1737f3a2d5323d5ca9bdf95d3f205394fbb11d01da587cf426669
MD5 b68d9c62469886c1b1ea8cd4417d946b
BLAKE2b-256 db3473605f528b8eda6c270ba1074f8ba16bcfa318acf1715009800476657c38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f21f9f32c4db847483350b1631ceae6e0d5369af49a62ebfccddcce52d8cc9ff
MD5 d62ecc01da6f943163116ae5839d8b1c
BLAKE2b-256 32bfca522b066a4843f0c82bae43080e9c13b9706f4f4b55402a54d37820c46a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 513481aec7b15a98b123e170418e251896f1cb3cd709f54def4d34de88e83096
MD5 a304b71053a8ce5fb8c0fd32e154d5d8
BLAKE2b-256 6a52a69a1b0a1c0a7758d15ad65287d5aaa253498037a7c59cb1c94bc5b400da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 e341a332d4d63e85542bbc48f5d1ad118eb33615bdff05e5f071950d114fa0de
MD5 af6d9048ca0e44d0bc8105011bcd7f57
BLAKE2b-256 3613c8888a08e42b1988283eb12c98e88d295a12ae472a445f898d7c8ee547bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3a01fc6639b1dfc936308dfd8401fbb57d6062e288be8aa3ec838d7dd2cd8042
MD5 8bf87eeb1971a258bedf12ad89d02ddc
BLAKE2b-256 8984d18954f4384231e8efd17a112939bbd1f4c5be00f391debb5632420702c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 beec22b0b951f70a7ae525df344aa67fe08adc717784d204c980cc0cc77b00ae
MD5 e64e0c6a54bfe36ca7abf7010dd7422f
BLAKE2b-256 f1f18c06dc823e1d5f332818ca61e4806819d4d308e84877955abbd330113920

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b9-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.11b9-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e4dd9ab88c4ca4b65648bba017ecd4607e3a37db9f0e7285ee85453cbe7a9781
MD5 4b0632a426e7e86038fe6d73df23f688
BLAKE2b-256 03f70d23047db7cc67671e99d1b0c5f2469c11efb393ab56e39dcd9f51442a4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 c417ef8986fd215b8300c7c075ab516baee38bc9ab5628b657d6864b32ef3d5d
MD5 e1572ac3a17c436cd5edbe76e6c91987
BLAKE2b-256 dfa372203b742547d55e18f6ff755e6c4bcf08a665c528995b7a645bfc7cf844

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 757f408b4598eb244632c218161ed869ba4c9cef8e6024a77abfd4ce3659936e
MD5 046d4d60f329290955bdb203ed217b94
BLAKE2b-256 594097f88ea682405fe48a896b6090c6e34b01b063e900b764d0f7a5903f2ae3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8652c21d6c2fcefe199b5e790ade64404f1ba04538c3053ac7afdf4f56a2ed69
MD5 ba79af97ce4519d98bc6f83be078afe0
BLAKE2b-256 58e8a2df4ef1e6456ba48542c283486aa3c917909f8116c9eca23a860434ef17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 1147908098ab0ffeac981fac091359af249208bff25447880850c7feb95ac756
MD5 46343c550c3aebf9ae7f30bfe6132421
BLAKE2b-256 77e5029c387bc024584569c548928d547befe12890054d23c652d440fa699275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 629008e015117dd74f0ed34768ed529fb449a8ac24b2886456098737ecef11b3
MD5 4d8e9b4719ac6ef9a3a6ecaeb8474d44
BLAKE2b-256 92c260aaa74e6865183648706a00d67a55dd20f074d389d35ef249a77ce87ec7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0a8331768983a5fa8733894378c6a806b929f73edfbb5445b6eb565be0215f9d
MD5 98f357a3a9cbbaeca816554f71fe5f94
BLAKE2b-256 47e5133f7ff1819557391b4cc64e324f959d8943cce0369acfb8ee6ef8bb9ac0

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b9-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.11b9-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c92c3b148e6a790b7d69edd43d5366a7fb553c73ab7c8f6c620f7352b453f795
MD5 ccb6dc08fbdd8ddd442eb1cff6de8ce7
BLAKE2b-256 79c8e6ea4b96510d5366f81afdf49f48af155d1f477a809eeec7577e1d1d2b04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 4ac31857fab1d9b597f04a0bd64145fd8e0f13fa69ec9bc11f5c8b118b39c6e2
MD5 3dbd05b9552625b379e098ec40569d59
BLAKE2b-256 f87a7d7bd38e3546910122979ad8aa61b9dfdd9768c74dea76ba4ccf1471c53b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69b82fc08b5ffbeb33fbbdae9f2169c0f5d65b2c4769b4924cd452e65cfb0748
MD5 f625740df42c84659c861f615eaddbf3
BLAKE2b-256 399bd7512f5bf62711e94f5f169fbb36ccba277c3c23bbec7437051f8fca506f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 3a0d43942f5f27baeb59a179d99b7c91c386c92ab876e947b2e83d3fd189795b
MD5 b11c5d9a06fa7f7035b9e7b5bac0fa3f
BLAKE2b-256 ee120059dea8e23e7403267c0bcc1c4efcfb37c20043867f5348924d52c4f1d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b9-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 ba591f776f6937fde83a8ad8de0a8f40699278e3234827584ad0a2990fbed685
MD5 dfe9388bc8316bff882dfecc15b8c070
BLAKE2b-256 3e880530c38804619d54d8030bcd15398a0f80498b799a61743c9583e2209d3b

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