Use feed-shm offsets in fill-arrow indexing arithmetic

ib_1m_hist
Tyler Goodlet 2022-10-26 09:52:32 -04:00
parent 5b63585398
commit 4ca7817735
1 changed files with 3 additions and 1 deletions

View File

@ -517,7 +517,9 @@ class OrderMode:
_, _, ratio = self.feed.get_ds_info() _, _, ratio = self.feed.get_ds_info()
for i, chart in [ for i, chart in [
(arrow_index, self.chart), (arrow_index, self.chart),
(self.feed.startup_hist_index + round(arrow_index/ratio), (self.feed.izero_hist
+
round((arrow_index - self.feed.izero_rt)/ratio),
self.hist_chart) self.hist_chart)
]: ]:
self.arrows.add( self.arrows.add(