The test indicator is printing each tick plus the state of the indicator at the time. What I'm noticing is that during historical processing, trades with the same timestamp do not update the indicator values for each tick, while they do during realtime.
An example of that difference below, with a tick on either side of the block to show continuity.
state: Historical ts: 10:27:23:355 bar: 2497 last: 4438.25 vol: 219 delta_close: -8558
state: Historical ts: 10:27:23:363 bar: 2497 last: 4438.25 vol: 220 delta_close: -8581
state: Historical ts: 10:27:23:363 bar: 2497 last: 4438.25 vol: 221 delta_close: -8581
state: Historical ts: 10:27:23:363 bar: 2497 last: 4438.25 vol: 231 delta_close: -8581
state: Historical ts: 10:27:23:363 bar: 2497 last: 4438.25 vol: 240 delta_close: -8581
state: Historical ts: 10:27:23:363 bar: 2497 last: 4438.25 vol: 248 delta_close: -8581
state: Historical ts: 10:27:23:363 bar: 2497 last: 4438.25 vol: 249 delta_close: -8581
state: Historical ts: 10:27:23:425 bar: 2497 last: 4438.5 vol: 250 delta_close: -8611
state: Realtime ts: 10:28:17:773 bar: 2498 last: 4436.5 vol: 280 delta_close: -8937
state: Realtime ts: 10:28:18:222 bar: 2498 last: 4436.5 vol: 281 delta_close: -8938
state: Realtime ts: 10:28:18:222 bar: 2498 last: 4436.5 vol: 287 delta_close: -8939
state: Realtime ts: 10:28:18:222 bar: 2498 last: 4436.5 vol: 289 delta_close: -8945
state: Realtime ts: 10:28:18:222 bar: 2498 last: 4436.5 vol: 297 delta_close: -8947
state: Realtime ts: 10:28:18:222 bar: 2498 last: 4436.5 vol: 298 delta_close: -8955
state: Realtime ts: 10:28:18:222 bar: 2498 last: 4436.5 vol: 299 delta_close: -8956
state: Realtime ts: 10:28:18:222 bar: 2498 last: 4436.5 vol: 300 delta_close: -8957
state: Realtime ts: 10:28:18:636 bar: 2498 last: 4436.25 vol: 301 delta_close: -8958
Is there something I can do to make the historical processing update for each trade tick as it does during realtime, not just each timestamp tick?
zTest.cs

Comment