Skip to content

An accurate calculation of technical analysis indicators with values aligning with those in TradingView.

Notifications You must be signed in to change notification settings

bluesky509/TradingView-Indicators

 
 

Repository files navigation

PT-BR

Se você quiser ler em português basta clicar aqui

Codacy Badge

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 and pandas, had some inaccuracies and needed adjustments. With this in mind, I created this repository specifically to address this issue of inaccuracy.

Installation

...

...```


## Example

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

df = pd.read_csv("BTCUSDT_1d_spot.csv")
source = df["close"].copy()
df["EMA"] = ta.ema(source, 14)
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]

About

An accurate calculation of technical analysis indicators with values aligning with those in TradingView.

Resources

Stars

Watchers

Forks

Languages

  • Python 86.9%
  • Jupyter Notebook 13.1%