In built method for DEMA using Python

Tried searching a lot but could not find any inbuilt method in python for computing DEMA.



Any suggestions?

Hi Skand,



You can use "DEMA()" function from the Ta-Lib library. If you don't have Ta-Lib installed you can follow this guide on How to install Ta-Lib in Python



Below you can find the syntax of this function:

# import talib
import talib as ta


ta.DEMA(data, period)

Parameters:



data: A pandas series with price data. Commonly close prices are used.

period: The look-back period.



If you need to see Ta-Lib documentation you can go to this link.