taxcore


Nametaxcore JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/yourusername/ta-library
SummaryA comprehensive technical analysis library for Python.
upload_time2024-10-22 12:45:48
maintainerNone
docs_urlNone
authorYavuz
requires_python>=3.6
licenseGPLv3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Technical Analysis Library

This library provides a collection of technical analysis indicators for financial market analysis. It is implemented in Python using the NumPy and Pandas libraries. The indicators can be used for various trading strategies and technical analysis applications.

## Features

- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Average True Range (ATR)
- Bollinger Bands
- Relative Strength Index (RSI)
- Moving Average Convergence Divergence (MACD)
- And many more...

## Installation

To use this library, ensure you have Python installed along with the required libraries. You can install the dependencies using pip:

```bash
pip install numpy pandas

## Usage

import numpy as np
import pandas as pd
import yfinance as yf
from TAxCore import TechnicalAnalysis

# Download historical price data for a stock (e.g., Apple)
ticker = 'AAPL'
data = yf.download(ticker, start='2022-01-01', end='2023-01-01')

# Extract closing prices using Numpy
prices = data['Close'].to_numpy()

# Calculate Simple Moving Average (SMA)
sma_values = TechnicalAnalysis.sma(prices, period=20)
print("SMA Values:", sma_values)

# Calculate Exponential Moving Average (EMA)
ema_values = TechnicalAnalysis.ema(prices, length=20)
print("EMA Values:", ema_values)

# Calculate Bollinger Bands
basis, upper, lower = TechnicalAnalysis.bollinger_bands(prices, length=20)
print("Bollinger Bands - Basis:", basis, "Upper:", upper, "Lower:", lower)

# Calculate Relative Strength Index (RSI)
rsi_values = TechnicalAnalysis.rsi(prices, period=14)
print("RSI Values:", rsi_values)

# Calculate Moving Average Convergence Divergence (MACD)
macd_line, signal_line, histogram = TechnicalAnalysis.macd(prices)
print("MACD Line:", macd_line, "Signal Line:", signal_line, "Histogram:", histogram)

# For visualization I recommend either Matplotlib, Plotly or MPLFinance. I tried all and they all work pretty good.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yourusername/ta-library",
    "name": "taxcore",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Yavuz",
    "author_email": "akbay.yavuz@example.com",
    "download_url": "https://files.pythonhosted.org/packages/72/f6/3403a3f18f2b9cef5ca447b11b9fd1c83f3020f1bfef949de8463b020a46/taxcore-0.1.2.tar.gz",
    "platform": null,
    "description": "# Technical Analysis Library\r\n\r\nThis library provides a collection of technical analysis indicators for financial market analysis. It is implemented in Python using the NumPy and Pandas libraries. The indicators can be used for various trading strategies and technical analysis applications.\r\n\r\n## Features\r\n\r\n- Simple Moving Average (SMA)\r\n- Exponential Moving Average (EMA)\r\n- Average True Range (ATR)\r\n- Bollinger Bands\r\n- Relative Strength Index (RSI)\r\n- Moving Average Convergence Divergence (MACD)\r\n- And many more...\r\n\r\n## Installation\r\n\r\nTo use this library, ensure you have Python installed along with the required libraries. You can install the dependencies using pip:\r\n\r\n```bash\r\npip install numpy pandas\r\n\r\n## Usage\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\nimport yfinance as yf\r\nfrom TAxCore import TechnicalAnalysis\r\n\r\n# Download historical price data for a stock (e.g., Apple)\r\nticker = 'AAPL'\r\ndata = yf.download(ticker, start='2022-01-01', end='2023-01-01')\r\n\r\n# Extract closing prices using Numpy\r\nprices = data['Close'].to_numpy()\r\n\r\n# Calculate Simple Moving Average (SMA)\r\nsma_values = TechnicalAnalysis.sma(prices, period=20)\r\nprint(\"SMA Values:\", sma_values)\r\n\r\n# Calculate Exponential Moving Average (EMA)\r\nema_values = TechnicalAnalysis.ema(prices, length=20)\r\nprint(\"EMA Values:\", ema_values)\r\n\r\n# Calculate Bollinger Bands\r\nbasis, upper, lower = TechnicalAnalysis.bollinger_bands(prices, length=20)\r\nprint(\"Bollinger Bands - Basis:\", basis, \"Upper:\", upper, \"Lower:\", lower)\r\n\r\n# Calculate Relative Strength Index (RSI)\r\nrsi_values = TechnicalAnalysis.rsi(prices, period=14)\r\nprint(\"RSI Values:\", rsi_values)\r\n\r\n# Calculate Moving Average Convergence Divergence (MACD)\r\nmacd_line, signal_line, histogram = TechnicalAnalysis.macd(prices)\r\nprint(\"MACD Line:\", macd_line, \"Signal Line:\", signal_line, \"Histogram:\", histogram)\r\n\r\n# For visualization I recommend either Matplotlib, Plotly or MPLFinance. I tried all and they all work pretty good.\r\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "A comprehensive technical analysis library for Python.",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/yourusername/ta-library"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cee7b8c108cbde9e8be7202cbea7c19d066bbbed5e55b8ef4c698db5009e94dd",
                "md5": "4ad9a0cf8ab80203faa22c97e34d4379",
                "sha256": "ea5a56887c123ce18b26b08bcf430a9438b8a5805d8d4b7cd7f49b9184a866c6"
            },
            "downloads": -1,
            "filename": "taxcore-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4ad9a0cf8ab80203faa22c97e34d4379",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 23603,
            "upload_time": "2024-10-22T12:45:46",
            "upload_time_iso_8601": "2024-10-22T12:45:46.600584Z",
            "url": "https://files.pythonhosted.org/packages/ce/e7/b8c108cbde9e8be7202cbea7c19d066bbbed5e55b8ef4c698db5009e94dd/taxcore-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "72f63403a3f18f2b9cef5ca447b11b9fd1c83f3020f1bfef949de8463b020a46",
                "md5": "4b2d9393ecdc2463b8532b64a00c6612",
                "sha256": "fcbb42788e1967a4c4b06c55e319fb4358307e27f6919725a7ee667068b304fa"
            },
            "downloads": -1,
            "filename": "taxcore-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "4b2d9393ecdc2463b8532b64a00c6612",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 24097,
            "upload_time": "2024-10-22T12:45:48",
            "upload_time_iso_8601": "2024-10-22T12:45:48.387421Z",
            "url": "https://files.pythonhosted.org/packages/72/f6/3403a3f18f2b9cef5ca447b11b9fd1c83f3020f1bfef949de8463b020a46/taxcore-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-22 12:45:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "ta-library",
    "github_not_found": true,
    "lcname": "taxcore"
}
        
Elapsed time: 0.43993s