Skip to main content

Pure pandas/numpy technical indicators inspired by Pine Script

Project description

pine_ta

pine_ta is a pure pandas and numpy implementation of popular technical indicators, inspired by Pine Script. No C extensions. No TA-Lib. Built for flexibility and easy integration with any DataFrame.

Features

  • RSI, MACD, ADX, ATR, Bollinger Bands
  • Stochastic, CCI, MFI, OBV, ROC, and more
  • Matching Pine Script behavior (RMA, EMA, WMA)
  • Single class API: TechnicalIndicators

Installation

pip install pine_ta

(coming soon on PyPI)

Example Usage

import pandas as pd
from pine_ta import TechnicalIndicators

# Assume df is a DataFrame with 'open', 'high', 'low', 'close', 'volume'
df['rsi'] = TechnicalIndicators.rsi(df)
df['macd'], df['signal'], df['hist'] = TechnicalIndicators.macd(df)
df['adx'] = TechnicalIndicators.adx(df)

Requirements

  • pandas
  • numpy

License

MIT

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

pine_ta-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

pine_ta-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pine_ta-0.1.0.tar.gz.

File metadata

  • Download URL: pine_ta-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pine_ta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 57ea5e2b3ab03a0d50503567e4d993291f25f889f6f9adfb941098c621ba5b17
MD5 335e0c2b2fde3c13e5ec7d4e487ff789
BLAKE2b-256 1f4ed7ab3de57351cd526631d507a207f20f710aa37ce828593ee73993319c02

See more details on using hashes here.

Provenance

The following attestation bundles were made for pine_ta-0.1.0.tar.gz:

Publisher: publish.yml on huzaifazahoor/pine_ta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pine_ta-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pine_ta-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pine_ta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6dbf38972cd567325219a4da4f5c5739dd8ba5344df2293e01f2a57b0ede0c7
MD5 86fd15599b5fb50a6f0221cc0300a5e2
BLAKE2b-256 83de5c8d37e4c7a19b48341409a72abb907f2a4b427f7a24c46e26048d42fb25

See more details on using hashes here.

Provenance

The following attestation bundles were made for pine_ta-0.1.0-py3-none-any.whl:

Publisher: publish.yml on huzaifazahoor/pine_ta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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