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

Uploaded CPython 3.14Windows x86-64

octobot_tulipy-0.4.11b12-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (344.3 kB view details)

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

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

octobot_tulipy-0.4.11b12-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (345.4 kB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2fb0dff087542ec833dac5ec31255ced882894506805cf5cf14dba3a4ed132ee
MD5 c48c79829158ea7eacdcbb1fe8bcb7a8
BLAKE2b-256 e4bf99a57826ff8140afe8bca7ab173b460cfcad9c24254611ecaa45f4fed92c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f95f0c9cd2a41a17b9ccb6a003ab04c5cfb915fbfd3441cf2ad2e07022128d81
MD5 c69c1ffccf5f643396f3628ce1853f95
BLAKE2b-256 7848ac82d406c900431716c10ee51c0bb195a97433d0596bc082e2aabaa62ab9

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b12-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.11b12-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a3bacf43f45f1736a843a486fc1e4e1e30d0bff3f9e36f757a081520e64d495
MD5 241b2b069bbaa1d261c5f7de4778d3e2
BLAKE2b-256 5dc24a202a4d83d5b8d6df28b90f85c005dff3ed24ec826cbd0ad5f6a9e27f6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 36635edcbd93bec09fd12c1f434cfb888c72b05d336d005b95c741ee9e6b1d86
MD5 af732527b250847cdaa3f2063592fa48
BLAKE2b-256 952b3853f52da469180a931eed25d26f2740b5559d9e4a42fe336e661f5087e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b06bb50acdebf66f359322c57a27bab2916e37ee03e8928f5aded8c0d8f0401f
MD5 3a9fe894bb8db5158f3aad0114062429
BLAKE2b-256 d461250caa77540bbacc59711967c2f475cb83d59aec0e7c1d1bb949675b09f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 12753589a11b781ae00d8f9c3334dcbdd726ba565c94f95890145a9073f1eb1a
MD5 51b556a1a4bb4afbd2dca7aa746b7027
BLAKE2b-256 2a3c694cb82fc8d90814ca47d835a185be1eef5f7992d59eedabbe11bd3e2abd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 afed41005146b5b719ea726bb0072be880119854a47d3c54ec41dfb4a14162f5
MD5 9b09b8b320b07305df83ee14ab856748
BLAKE2b-256 a14d51ecf0677d3a2a01cb264f3ddb76cc1d05df04ff07a99118a877b63358ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7dda85826c8c22edbd507c63ff30d11a4f266bc81d76e90b6964849c8bbfa92b
MD5 eeed4ba0029d50f6cb7b1280ce1130d1
BLAKE2b-256 af589dd4e87abde518c829ec28c4267efdf8decabddcb594fe8a23afcbceb495

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 042e6867fe92993c04e5a5225ddc4b769208bd7462422e0f50c4e3389e6796e7
MD5 8cd6ef0f6562f29f55a576871c7bee0c
BLAKE2b-256 c07dd445773f5e190770eccbbf52668fa6044c6aafd6c7b5a488c30492d90182

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b12-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.11b12-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c1414871faf740aeffd995d28cfa2c58029b9d4b34f8d52bc81a72731748fea
MD5 448afb73c899b4fa4a8cfca26f1ff162
BLAKE2b-256 a2dcd714a5a66f988abef06d60aa9e7b86ea54e76a43ac21eebec475122c7dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 d3cab88a5af892cf2aaca4ef0ea3921baed5b37b56c4e44496b368900efe80b7
MD5 87c58b285b1d3dcb757df4191e012be3
BLAKE2b-256 a6d28e01f9add2b7e1927eb9ea73390aef33b167e0b8049fcfb0625b4198ba15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd2e6978876b5f2305d3bf554f6fb6975bd0032daecdac078e2dcbf7a6ee8e20
MD5 1f70415cc12412ae2811d92b4e0e4fe4
BLAKE2b-256 81d26c57fd2401b2e91c8f2e0a7c99541ca57832152ef6c89cccd60b7aeb76ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 681f8575237a89b89d01c7d1e61bda1af58184051c46dc5cb43552cef67017f6
MD5 021ebc4f62c8cabf8de24af75fbe4e78
BLAKE2b-256 09b614ac005221f492ba418650a337c4f029f47c677cee33781822df1d3ad7d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 69ba4e37ca612b378269a72887af1f4cfbd1a79c7a27233470e8e74a77da933d
MD5 7a6e776b0308bbf977fb7a364d2d8a28
BLAKE2b-256 56f98e7ef25d29dee927111f4b7391a3f10f9929072ea0a0a09e3f9f4ec82023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f30c4127c182a5478c9fb4d1449574ff4ad9d91a6fd9a81ad11018576decb5b
MD5 955680089fbf04de745530c7303c3895
BLAKE2b-256 53f0395942a2c88d6011f68e534622bf56a082b2184c54275828fbfe5c70c06b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bc78a0ab12574d0588ba491eaa4e8ecb16ca29ac3c8ddb1ef7d267a83cb4e4c2
MD5 a63c003d80663b1e0cd97898635fe9f5
BLAKE2b-256 55a6006086049f0f719f45ef9ad22dc1b2c879998c3d1a6a0c07153c0587b2d2

See more details on using hashes here.

File details

Details for the file octobot_tulipy-0.4.11b12-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.11b12-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d4fa210bd456c6aa3da7fd9c80ae08ec3ff530974eebb764a57d8d8cff91e2e3
MD5 df7b25cff937e5cbbe18da34f6a01b0c
BLAKE2b-256 d421a0048af8d9fd7a37591713d1c47105acfc32e6e74db7770fdd1874293224

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Algorithm Hash digest
SHA256 75e094bbfb396fc31c403565a7cb04e020dfc1ad220ce45bccb735a60c7bc3fc
MD5 f8e7821a8b9cac3700cd2016a2768725
BLAKE2b-256 d6b9baf051d5b56f6ab6d689f56e05bb479edff463ee79b7f201ee24c5de00c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52acda0bb0a59bfe8cad4691f7a0d39c36fabbae01037623d6f2e60b46bad647
MD5 09c23a6a7216b5cc87a7c8422a84864c
BLAKE2b-256 abe84eab91b3b2baa23c62d641357e60d24b0489497f383a57c13f0f7fb138b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ca9c5ea05bff00ea5cd847f58112f9c26de67eb83880b9db5978ec865be15c10
MD5 23b6212b6b96d7aba4ac6f18fc3234e9
BLAKE2b-256 5f68459a8b1017d0226698943fd45d2119d5390f484f537412604bd9529494f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octobot_tulipy-0.4.11b12-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 6db425bd4195cc791813a3acba488c27b7d088ae3bbac5da743e34655b732953
MD5 2c8184221c1c9c5d0d01dc5d1afb7214
BLAKE2b-256 350d7119a1bbd3dd92195c4db4291ac822b11a97ecc4ef74066eef0b99638757

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