From 83d2322770b83d3790a5305ab5f023b9253061ea Mon Sep 17 00:00:00 2001 From: Valentin DION Date: Wed, 9 Jun 2021 18:08:44 +0200 Subject: [PATCH] add missing iloc --- ta/trend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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