ema5 ema21 ta lib not matching with tradingview

83 views Asked by At

I tried below code

import yfinance as yf
import pandas_ta as ta

dfpl = yf.download('TCS.NS',start='2023-01-01',end='2023-01-05',interval='15m')

dfpl["EMA5"] = ta.ema(dfpl["Close"],5)
dfpl["EMA21"] = ta.ema(dfpl["Close"],21)

print(dfpl[20:])

It gave me these values

enter image description here

Tradingview values

enter image description here

Tradinview settings

enter image description here

What wrong I'm doing here ?

0

There are 0 answers