tradingview-indicators


Nametradingview-indicators JSON
Version 0.0.8.0 PyPI version JSON
download
home_pageNone
SummaryAn accurate calculation of technical analysis indicators with values aligning with those in TradingView.
upload_time2024-04-25 00:25:05
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/d2/26/cbe7790c3ab289c9acde4c988293a58f03a4ed8748f402ef53b04edfa77f/tradingview_indicators-0.0.8.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.0.8.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        " tradingview",
        " technical analysis",
        " indicators"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "63f6a6390a6e2faa61e1ded124d17ce880f5132608267e0083779e55e4d42893",
                "md5": "0416669fdc0fb7057d0823f8c9b6307e",
                "sha256": "ad7aadc92843c33cbdbd847f86ffd1ecec9a34c5699a711a4861ac041d2f3b43"
            },
            "downloads": -1,
            "filename": "tradingview_indicators-0.0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0416669fdc0fb7057d0823f8c9b6307e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 14498,
            "upload_time": "2024-04-25T00:25:03",
            "upload_time_iso_8601": "2024-04-25T00:25:03.053475Z",
            "url": "https://files.pythonhosted.org/packages/63/f6/a6390a6e2faa61e1ded124d17ce880f5132608267e0083779e55e4d42893/tradingview_indicators-0.0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d226cbe7790c3ab289c9acde4c988293a58f03a4ed8748f402ef53b04edfa77f",
                "md5": "69dafc3b42152dcf612666e8bbd990fd",
                "sha256": "45cf31d35ddcacc9fdaaa91012a60b2bbb549e828aa223e749fd4941ac3502bf"
            },
            "downloads": -1,
            "filename": "tradingview_indicators-0.0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "69dafc3b42152dcf612666e8bbd990fd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11499,
            "upload_time": "2024-04-25T00:25:05",
            "upload_time_iso_8601": "2024-04-25T00:25:05.045803Z",
            "url": "https://files.pythonhosted.org/packages/d2/26/cbe7790c3ab289c9acde4c988293a58f03a4ed8748f402ef53b04edfa77f/tradingview_indicators-0.0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-25 00:25:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tradingview-indicators"
}
        
Elapsed time: 0.25551s