Use last 16 steps in period detection, not first 16..

basic_buy_bot
Tyler Goodlet 2023-06-14 14:38:50 -04:00
parent 0484e97382
commit 8947932289
1 changed files with 2 additions and 2 deletions

View File

@ -371,8 +371,8 @@ class Viz(Struct):
# the source data. # the source data.
if self._index_step is None: if self._index_step is None:
index = self.shm.array[self.index_field] index: np.ndarray = self.shm.array[self.index_field]
isample = index[:16] isample: np.ndarray = index[-16:]
mxdiff: None | float = None mxdiff: None | float = None
for step in np.diff(isample): for step in np.diff(isample):