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

Uploaded CPython 3.14Windows x86-64

octobot_tulipy-0.4.11b13-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (344.4 kB view details)

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

octobot_tulipy-0.4.11b13-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (347.4 kB view details)

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

octobot_tulipy-0.4.11b13-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (341.9 kB view details)

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

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

octobot_tulipy-0.4.11b13-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.11b13-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.11b13-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl (342.4 kB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3554d801722dbf3301f89e8549efcee7ebdeb4f48d5301b066d7dcfc8ee5040b
MD5 b0ef857ed6d2c29036306e5a66854ae5
BLAKE2b-256 5528533f6a32b8eaf07517e5585072bce6d5c5cb5251ec8e0b6d5d6936443086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 100b7be45680ec39e5f62f03ea70907e20485d8161a15dd9015a93fcc98d0d6a
MD5 415b20e824b683c2f350f789cbf4a46a
BLAKE2b-256 d574dcc1340c924efba90c0117c0134bc047c72cb190d5fe96c39dcff82fd0f6

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b13-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.11b13-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b07380679a1c10b623fcc5bde4d0471411558339e45405730d2063812a344f1
MD5 a44f3cdba18c363ae2ccc36b0b640e6f
BLAKE2b-256 016a2a9cafe9cae1ef11abe6617770ad1a535e915e4430c14b0832dfa1fd9865

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 a9a457e3a40b6845e37e41b70719c8522494312ac73cf82339520d31f9e984a4
MD5 637e7de6d6f17ce40a81ba2d919f4f8a
BLAKE2b-256 f0131ba0aa1ad45699e15048c90a4a9f8e83bcd297a09e2821ce62694394a192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf5d5c2b5c77e1288821e81ce655805e94a41ddc2b34ae50c6fc0380f4163432
MD5 f26f9a7bdf03b8eb5ddd679b049d606f
BLAKE2b-256 6ce06c3ab1c900db3c54f3f9c6a8d6cb013ba5d3b6019c065b3985f01819b7c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3ae578748317adfad8c3a589ed79171f23ab9c2eaf4ad79c5155acc1e6a2bce0
MD5 d16594eb8c6e8b0182d874a6f0f7a03a
BLAKE2b-256 4ca72741eebd18253956f2a408642e0f9f1d17c5868ea8ace1446d34900fa86f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 b5e49165d33e3b225eb27c806f7893d87d0f1258b71af342a4252924079004ce
MD5 725f8558e140e18c3c75a5d148e9b0fa
BLAKE2b-256 cbabbea264e3afbb1c56a9865e8a82f7f3aa2c5479a32449821947682394511d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2373eff4ccfbb8253d98b96f998f426f8c1c3b192a1603f4dcc46003a5899251
MD5 fbf96cc3a078d207cf3333cd93d90d4d
BLAKE2b-256 f5082cc6cd1f7d9f8957ed885a1fb3ccd549ecbdbaf62f69974618ee8515fa06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c44c97d3e1e5690c45cb59507859e6e7db494d031dc4b06f14bbb2393c712805
MD5 70acfea8ec44e7b940f14cb7b57075f6
BLAKE2b-256 b70156ec1008b9b8ef080c1ae23acf96ead428e99c3cb45e9d41ec7ce0e2f40d

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b13-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.11b13-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 064d356de69d7c8696ad3723c343aa253b9a97ac99786396a534fff91d23718e
MD5 fa9b42eb4ea3efe3c41a3c9ddafafaba
BLAKE2b-256 d4140bb890b383cc6864031e60a02416ad5fd4f3a78f3ed4a20b85057ec0628a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 10615ec1d79fa516436a3b59be015d01672919dae3021c394ec9d48d97960417
MD5 e9539427f3219e4be9bedbe206c9b0d1
BLAKE2b-256 2e55b8e9f126659b15ded326b52acb366aacca84284c874fad357939a6160d9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c86d31a2a3e5df14306c7c15ef6b6c0d3e5c17988ceb31ea37ca568a9f0bb9c4
MD5 cf84c332896cae963af40090900ea710
BLAKE2b-256 234b0b2d800187c1f65c713485d544430495aa8f84c940bba5260476e6765ab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a01970f19e19305a5031bab0ecfb83a519e6ff2ceff20b5fddc509c181abf0d6
MD5 bdfb2b87f758c19887df2c24271ca11b
BLAKE2b-256 1c2e8cbdadb082b2e5bdea05514d381faa656bf6788107f9c520f73291c9cce8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 c28fa2ff148dbb652713f85532aa390c5b103721d070145df4af7396a9f8bb46
MD5 14f52d07df88647ea1b50d35fda05a7e
BLAKE2b-256 50866a672542832600b241a551922063142b7be206871274471a4985b412b674

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4c843f11b77ca44796929623da71c99674bf90e725b28bfb7384719a53607193
MD5 7793dffe56f293ca00f7ab9556e409f4
BLAKE2b-256 3d6ee2e20c5b6c11a6ceb1974159b0a551fa3330ac55d009bb1e79c43534fb28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fb4803b361d3abf4302ab02180db88ae9fabf5de884f840ab4cb45908fc274aa
MD5 fdc0bef8618a3a24959f6283abb1deef
BLAKE2b-256 014e9ce3be0e47a62cc898cad9307cae8de87167e266cea71fc4ef0bae0f24b1

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b13-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.11b13-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 751c8bdf1e6ab03d476d6dff769ccbdfa574a77d74825ec1287cad1f9c62ef45
MD5 bba2b22d6342eb272b9e0ec4acf5339b
BLAKE2b-256 93658061ce32fc106ae67b7554c827956557c3513b1c6d8e6d8689d7236f786c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 3213dc08c56b1d04a5542a316c9c6c4bfe216af7aecc79a83ea1918e84843f2d
MD5 8ecfc4bbc6e965561073c8deb21c2c0e
BLAKE2b-256 2d07aedc87685606b6724bf355aeb00f660bdb5a745f5e8a4f5802ddfc1aed26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a905abf32fccb01adc526f948e55e86378fada8d67c2d20adcb7a0da5cd55b8
MD5 dd995a06479036205f35c7100c0c6ccd
BLAKE2b-256 2912f8dd3cf273abec5dc6677363105fb405b01d4c12e63ef0ac02c4e1ded442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 31026c69f44b7292ef532d8664236261a6f436096a97bfa7111705b8f7f2665b
MD5 92385c0394f37128ee68ed58ca2100e1
BLAKE2b-256 ad8a07a231b3547366e020577e844bfa0718099385dd995ccfe482c8b0ec7d30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b13-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 1a95baea336c5976874bb64c772a3a569c0d5e700a2c5d84b45f579bc99e49f9
MD5 4043db3e9959dd018e423725fe1c0aec
BLAKE2b-256 b6a6395b644ab19d52cdd17373e9e9f754749383907fc4446be41bae3a7c9093

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