## 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/e1/ba/fbb894ea0ce8a947e4bcadb9b9c61606b80564c5545d0c1e9a761d9fc1ef/tradingview_indicators-0.0.9.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.9.0",
"project_urls": null,
"split_keywords": [
"python",
" tradingview",
" technical analysis",
" indicators"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "04002e453e94a4f1a1505dd0541c5619e7bba49a952ae26d7dfa55f2b5d3230c",
"md5": "8e10d32ea5b7b21646833d538ec25836",
"sha256": "31927a29ec23d7ab304596b26746630b1b534c87e3a27d747636745b3349e593"
},
"downloads": -1,
"filename": "tradingview_indicators-0.0.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8e10d32ea5b7b21646833d538ec25836",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17278,
"upload_time": "2024-04-29T23:22:24",
"upload_time_iso_8601": "2024-04-29T23:22:24.541698Z",
"url": "https://files.pythonhosted.org/packages/04/00/2e453e94a4f1a1505dd0541c5619e7bba49a952ae26d7dfa55f2b5d3230c/tradingview_indicators-0.0.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e1bafbb894ea0ce8a947e4bcadb9b9c61606b80564c5545d0c1e9a761d9fc1ef",
"md5": "a2ce9d12cf9e8149aea0c8ce9e1633e7",
"sha256": "3864e6382abbf5947780918fa6c58e9f3dc6c5e92ea8c27227bf81f7a9ae5be0"
},
"downloads": -1,
"filename": "tradingview_indicators-0.0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "a2ce9d12cf9e8149aea0c8ce9e1633e7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 12420,
"upload_time": "2024-04-29T23:22:25",
"upload_time_iso_8601": "2024-04-29T23:22:25.864668Z",
"url": "https://files.pythonhosted.org/packages/e1/ba/fbb894ea0ce8a947e4bcadb9b9c61606b80564c5545d0c1e9a761d9fc1ef/tradingview_indicators-0.0.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-29 23:22:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "tradingview-indicators"
}