Skip to main content

Hex Incremental Technical Analysis Library

Project description

Hexital - Incremental Technical Analysis Library

unit tests

Early Development

Note: Extremely early stages and likely change drastically, including core functionality and methods.

Hexital

Hexital is a Python library implementing financial indicators for technical analysis. The distinctive feature of the library is its incremental computation of indicators which is designed to fit real-time applications or applications with iterative input in general.

For most libraries such as Pandas-TA which is fantastic for generating Indicators for a large set of data, it's incredibly slow when computing real-time/incremental data sets. The entire input vector is always used to calculate new values of indicators, which is a major cause of this speed issue. Despite the fact that these indicator values will remain unchanged and/or you don't want past data points to be changed by new data. Hexital resolves this by using an incremental approach, only calculating new/missing indicator value's, this implies it requires O(1) time to produce new indicator values in comparison to O(n) (or worse) required by other libraries.

Indicators

  • ATR
  • EMA
  • MACDR
  • RMA
  • RSI
  • SMA
  • TR

Analysis

Simple useful Candle Anaylsis methods such as those in Pine Scripting

  • Positive/Negative Candle
  • Rising/Falling Indicator
  • Mean Based Rising/Falling Indicator
  • Highest/Lowest Indicator (Value)
  • HighestBar/LowestBar Indicator (Offset how far back)
  • Indicator Cross
  • Indicator CrossOver/CrossUnder

Installation

pip install hexital

In case you want to install the latest development version from the repo, use

pip install git+https://github.com/merlinr/hexital.git@development

Upcoming Features

Roughly ordered in priority

  • More Indicators
  • More Analysis methods
  • Pattern Candle recognition methods, detecting Doji, Hammer, etc
  • Pattern Indicators, use above methods to run automatically as indicators
  • Support for automatic multi timeframe indicator generation
    • E.G: With 1 minute candles, we can generate EMA for minute candles and 5 minute candles
  • Indicator Pluggability, to allow easy extension of this library
    • Allowing custom Indictors to be added
  • Multiprocessing, of indictors stored within hexial Class.
    • Likely wont see increase in performance

Testing

Testing is a huge part of this library as it's incredibly difficult to ensure the accuracy of the indicator values being generated. In order to solve this this I rely on Pandas-TA as my source of truth for the indicator values. Each indicator added to this library requires a test that uses the Pandas-TA lib indicator output as the expected result.

Inspiration

This library was was inspired by TALIpp which is another Incremental Technical Analysis Library, however I disliked the seperate input lists rather then an entire candle, and futhermore outputs are seperated entities requiring lots of managing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hexital-0.1.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hexital-0.1.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file hexital-0.1.1.tar.gz.

File metadata

  • Download URL: hexital-0.1.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.1.0-10-amd64

File hashes

Hashes for hexital-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3ede98abf901f1551b6cdacff001b49a6c6bf0ec88c7731a7282810a0ef38122
MD5 539c7d3a1b4ca2c787b475389f957ccb
BLAKE2b-256 c68efb666bc40b0f5adb1c1d1f15baadcc70108a2d7269efa29f69e732465fde

See more details on using hashes here.

File details

Details for the file hexital-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hexital-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.1.0-10-amd64

File hashes

Hashes for hexital-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f3d4022e9d43793177f03a092bd30a3878659452ea2b8c02a23abaf59a8f75e
MD5 11fe55c1fa0d065979a5d559030edc11
BLAKE2b-256 0a5324b303d06cc66fd075719d3342b1e0b69b0df01150f4d488a5117f2442f2

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