tradingview-indicators


Nametradingview-indicators JSON
Version 0.1.1.0 PyPI version JSON
download
home_pageNone
SummaryAn accurate calculation of technical analysis indicators with values aligning with those in TradingView.
upload_time2024-07-07 22:50:20
maintainerNone
docs_urlNone
authorm-marqx (Mateus Marques)
requires_pythonNone
licenseNone
keywords python tradingview technical analysis indicators
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## PT-BR
Se voce quiser ler em portugues basta [clicar aqui](https://github.com/m-marqx/TradingView-Indicators/blob/main/readme%20-%20pt-br.md)

## Objective

The initial objective of this repository was to create technical analysis indicators in a way that they would be easy to maintain and highly modular. It was observed that the initial values of the indicators, both by [TA-Lib](https://github.com/TA-Lib/ta-lib-python) and pandas, had some inaccuracies and needed adjustments. With this in mind, I created this repository specifically to address this issue of inaccuracy.

## Installation

To install TradingView Indicators, you need to use the package manager [pip](https://pip.pypa.io/en/stable/):

```
pip install tradingview-indicators
```


## Example

```python
import pandas as pd
import tradingview_indicators as ta

df = pd.read_csv("BTCUSDT_1d_spot.csv")
source = df["close"].copy()
df["RSI"] = ta.RSI(source, 14)
df["MACD"] = ta.MACD(source, 12, 26, 9).get_histogram

dmi = ta.DMI(df, "close")

df["ADX"] = dmi.adx()[0]
df["DI+"] = dmi.adx()[1]
df["DI-"] = dmi.adx()[2]
df["DI_Delta"] = dmi.di_difference()[0]
df["DI_Ratio"] = dmi.di_difference()[1]
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tradingview-indicators",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, tradingview, technical analysis, indicators",
    "author": "m-marqx (Mateus Marques)",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/95/bb/eb568ce1dd05e9d76572234e1e173490b50ff7b7ac102b0c35ae95acf33a/tradingview_indicators-0.1.1.0.tar.gz",
    "platform": null,
    "description": "## PT-BR\r\nSe voce quiser ler em portugues basta [clicar aqui](https://github.com/m-marqx/TradingView-Indicators/blob/main/readme%20-%20pt-br.md)\r\n\r\n## Objective\r\n\r\nThe initial objective of this repository was to create technical analysis indicators in a way that they would be easy to maintain and highly modular. It was observed that the initial values of the indicators, both by [TA-Lib](https://github.com/TA-Lib/ta-lib-python) and pandas, had some inaccuracies and needed adjustments. With this in mind, I created this repository specifically to address this issue of inaccuracy.\r\n\r\n## Installation\r\n\r\nTo install TradingView Indicators, you need to use the package manager [pip](https://pip.pypa.io/en/stable/):\r\n\r\n```\r\npip install tradingview-indicators\r\n```\r\n\r\n\r\n## Example\r\n\r\n```python\r\nimport pandas as pd\r\nimport tradingview_indicators as ta\r\n\r\ndf = pd.read_csv(\"BTCUSDT_1d_spot.csv\")\r\nsource = df[\"close\"].copy()\r\ndf[\"RSI\"] = ta.RSI(source, 14)\r\ndf[\"MACD\"] = ta.MACD(source, 12, 26, 9).get_histogram\r\n\r\ndmi = ta.DMI(df, \"close\")\r\n\r\ndf[\"ADX\"] = dmi.adx()[0]\r\ndf[\"DI+\"] = dmi.adx()[1]\r\ndf[\"DI-\"] = dmi.adx()[2]\r\ndf[\"DI_Delta\"] = dmi.di_difference()[0]\r\ndf[\"DI_Ratio\"] = dmi.di_difference()[1]\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "An accurate calculation of technical analysis indicators with values aligning with those in TradingView.",
    "version": "0.1.1.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        " tradingview",
        " technical analysis",
        " indicators"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f52277bc9df51871648d30e407a8b39508995ae6450af3c4612aefb9315ad61",
                "md5": "1d43c0f6886d71a90db7b899518dd6fa",
                "sha256": "d633c47ae478d0778f0facb70cb5e8c5659431aef487abb86a2ea59254973147"
            },
            "downloads": -1,
            "filename": "tradingview_indicators-0.1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1d43c0f6886d71a90db7b899518dd6fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 19328,
            "upload_time": "2024-07-07T22:50:18",
            "upload_time_iso_8601": "2024-07-07T22:50:18.560497Z",
            "url": "https://files.pythonhosted.org/packages/2f/52/277bc9df51871648d30e407a8b39508995ae6450af3c4612aefb9315ad61/tradingview_indicators-0.1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "95bbeb568ce1dd05e9d76572234e1e173490b50ff7b7ac102b0c35ae95acf33a",
                "md5": "5ad8d02777ba6ff85b2cab5489a06c30",
                "sha256": "11f303006f6ef805823dcf153ff9fc765082e09392c5e4cc829ce9eeac79e190"
            },
            "downloads": -1,
            "filename": "tradingview_indicators-0.1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5ad8d02777ba6ff85b2cab5489a06c30",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13443,
            "upload_time": "2024-07-07T22:50:20",
            "upload_time_iso_8601": "2024-07-07T22:50:20.598218Z",
            "url": "https://files.pythonhosted.org/packages/95/bb/eb568ce1dd05e9d76572234e1e173490b50ff7b7ac102b0c35ae95acf33a/tradingview_indicators-0.1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-07 22:50:20",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tradingview-indicators"
}
        
Elapsed time: 7.11302s