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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57ea5e2b3ab03a0d50503567e4d993291f25f889f6f9adfb941098c621ba5b17
|
|
| MD5 |
335e0c2b2fde3c13e5ec7d4e487ff789
|
|
| BLAKE2b-256 |
1f4ed7ab3de57351cd526631d507a207f20f710aa37ce828593ee73993319c02
|
Provenance
The following attestation bundles were made for pine_ta-0.1.0.tar.gz:
Publisher:
publish.yml on huzaifazahoor/pine_ta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pine_ta-0.1.0.tar.gz -
Subject digest:
57ea5e2b3ab03a0d50503567e4d993291f25f889f6f9adfb941098c621ba5b17 - Sigstore transparency entry: 241255789
- Sigstore integration time:
-
Permalink:
huzaifazahoor/pine_ta@0e8be3f027575ff2b2a13ce926faed282e9af66d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/huzaifazahoor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0e8be3f027575ff2b2a13ce926faed282e9af66d -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6dbf38972cd567325219a4da4f5c5739dd8ba5344df2293e01f2a57b0ede0c7
|
|
| MD5 |
86fd15599b5fb50a6f0221cc0300a5e2
|
|
| BLAKE2b-256 |
83de5c8d37e4c7a19b48341409a72abb907f2a4b427f7a24c46e26048d42fb25
|
Provenance
The following attestation bundles were made for pine_ta-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on huzaifazahoor/pine_ta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pine_ta-0.1.0-py3-none-any.whl -
Subject digest:
c6dbf38972cd567325219a4da4f5c5739dd8ba5344df2293e01f2a57b0ede0c7 - Sigstore transparency entry: 241255806
- Sigstore integration time:
-
Permalink:
huzaifazahoor/pine_ta@0e8be3f027575ff2b2a13ce926faed282e9af66d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/huzaifazahoor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0e8be3f027575ff2b2a13ce926faed282e9af66d -
Trigger Event:
release
-
Statement type: