Skip to content

Commit

Permalink
Added ehma in core
Browse files Browse the repository at this point in the history
  • Loading branch information
XotEmBotZ committed Jan 3, 2025
1 parent eeae176 commit 1ef588e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pandas_ta/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,11 @@ def hma(self, length=None, offset=None, **kwargs: DictLike):
result = hma(close=close, length=length, offset=offset, **kwargs)
return self._post_process(result, **kwargs)

def ehma(self, length=None, offset=None, **kwargs: DictLike):
close = self._get_column(kwargs.pop("close", "close"))
result = ehma(close=close, length=length, offset=offset, **kwargs)
return self._post_process(result, **kwargs)

def hwma(self, na=None, nb=None, nc=None, offset=None, **kwargs: DictLike):
close = self._get_column(kwargs.pop("close", "close"))
result = hwma(close=close, na=na, nb=nb, nc=nc, offset=offset, **kwargs)
Expand Down

0 comments on commit 1ef588e

Please sign in to comment.