diff --git a/ta/trend.py b/ta/trend.py index 4c596939..7f6d8628 100644 --- a/ta/trend.py +++ b/ta/trend.py @@ -985,7 +985,7 @@ def _run(self): # noqa high1 = self._high.iloc[i - 1] high2 = self._high.iloc[i - 2] if high2 > self._psar.iloc[i]: - self._psar[i] = high2 + self._psar.iloc[i] = high2 elif high1 > self._psar.iloc[i]: self._psar.iloc[i] = high1