diff --git a/ta/others.py b/ta/others.py index 0cb43a57..c986b145 100644 --- a/ta/others.py +++ b/ta/others.py @@ -25,9 +25,7 @@ def __init__(self, close: pd.Series, fillna: bool = False): self._run() def _run(self): - self._dr = ( - self._close / self._close.shift(1, fill_value=self._close.mean()) - ) - 1 + self._dr = (self._close / self._close.shift(1)) - 1 self._dr *= 100 def daily_return(self) -> pd.Series: