From dff83f9b82bece2bac46a6787940bd7d41899a2e Mon Sep 17 00:00:00 2001 From: cozyBrain <63446757+cozyBrain@users.noreply.github.com> Date: Sat, 13 Jul 2024 03:00:10 +0900 Subject: [PATCH] Fix trend.py Fix missing iloc --- ta/trend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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