Skip to main content

QTALIB: Quantitative Technical Analysis Library

Latest update on 2022-12-18

Technical indicators implemented in Cython/C. This is supposed to be a faster technical analysis library with perfect integration to Python.

Available technical indicators

  • Simple Moving Average (SMA)

  • Exponential Moving Average (EMA)

  • Moving Average Convergence Divergence (MACD)

  • Moving Standard Deviation function (MSTD)

  • Relative Strength Index (RSI)

  • True Range (TR)

  • Absolute True Range (ATR)

  • (Parabolic) Stop and Reverse (SAR)

  • Super Trend (ST)

  • Time Segmented Volume (TSV)

  • On Balance Volume (OBV)

  • Cyclicality (CLC)

Installation

You may run the folllowing command to install QTalib immediately:

# Virtual environment is recommended (python 3.8 or above is supported)
>> conda create -n qtalib python=3.8
>> conda activate qtalib

# (Recommend) Install latest version from github 
>> pip install git+https://github.com/josephchenhk/qtalib@main

# Alternatively, install stable version from pip (currently version 0.0.2)
>> pip install qtalib

Usage

import numpy as np
import qtalib.indicators as ta

values = np.array([12.0, 14.0, 64.0, 32.0, 53.0])

# Simple Moving Average
# [30.         36.66666667 49.66666667]
print(ta.SMA(values, 3))

# Exponential Moving Average
# [12.         13.33333333 42.28571429 36.8        45.16129032]
print(ta.EMA(values, 3))

Contributing

  • Fork it (https://github.com/josephchenhk/qtalib/fork)
  • Study how it's implemented.
  • Create your feature branch (git checkout -b my-new-feature).
  • Use flake8 to ensure your code format complies with PEP8.
  • Commit your changes (git commit -am 'Add some feature').
  • Push to the branch (git push origin my-new-feature).
  • Create a new Pull Request.

Metadata

Release files for qtalib 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qtalib 0.0.2
File Size Uploaded Provenance Actions
qtalib-0.0.2.tar.gz 233.5 kB Without provenance Details for qtalib-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qtalib 0.0.2
File Interpreter ABI Platform Actions
qtalib-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for qtalib-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl

Total release size: 463.1 kB

Release files / qtalib-0.0.2.tar.gz

Download URL qtalib-0.0.2.tar.gz
Size 233.5 kB
Tags Source
SHA-256 checksum
How to use checksums
909e93e2af1088c62e7aa9e5ede17cc48b65b34f4635668d60a43b77b5b9deee
BLAKE2b-256 checksum
How to use checksums
0420217172a44e5f67f9b8a241debb3d0d68cdff2a4f193101be2684af8226f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.11

Release files / qtalib-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl

Download URL qtalib-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl
Size 229.6 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3156134ffb2754e5f4bd619174f800fe5f78f8c00e21187486ab5bc705dc8c97
BLAKE2b-256 checksum
How to use checksums
d43e0bf4fcaffc468026d0a1d155aed41223ce1557b0eeaba55048b31c42d00e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.11

Security for qtalib 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page