diff --git a/ta/trend.py b/ta/trend.py index 553afad..8cd8623 100644 --- a/ta/trend.py +++ b/ta/trend.py @@ -1027,7 +1027,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