ta icon indicating copy to clipboard operation
ta copied to clipboard

DPO indicator

Open ganeshedw opened this issue 4 years ago • 0 comments

import yfinance as yf import pandas as pd import ta

start ='2019-01-01' end ='2020-06-20'

AAPL=yf.download('AAPL',start,end) df_app=AAPL.reset_index() df_app['Symbol']='AAPL' dpo_indi=ta.trend.DPOIndicator(close=df_app["Close"], n=20) df_app['DPO'] =dpo_indi.dpo()

DPO value shows -11.037500 on 2020-06-19. Actual value is 34.1240

ganeshedw avatar Jun 20 '20 17:06 ganeshedw