The indicator just loads an instance of OrderFlow Cumulative Delta Bars and prints out the values of the current bar. Calculate is set to OnBarClose.
The strategy just loads an instance of OrderFlow Cumulative Delta Bars and prints out the values of the current bar. Calculate is set to OnBarClose.
It appears I get the same values from either code when in State.Historical for example:
Strategy - Bar: 3315 the delta was: 27 the Close was: 8982.25
Strategy - Bar: 3316 the delta was: 26 the Close was: 8985
Strategy - Bar: 3317 the delta was: -152 the Close was: 8978.75
Indicator - Bar: 3315 the delta was: 27 the close was: 8982.25
Indicator - Bar: 3316 the delta was: 26 the close was: 8985
Indicator - Bar: 3317 the delta was: -152 the close was: 8978.75
But as soon as I hit realtime, it starts to return different values:
Indicator - Bar: 3332 the delta was: -84 the close was: 8964.5
Strategy - Bar: 3332 the delta was: -41 the Close was: 8964.5
Indicator - Bar: 3333 the delta was: 128 the close was: 8973.25
Strategy - Bar: 3333 the delta was: -83 the Close was: 8973.25
...
Indicator - Bar: 3338 the delta was: 96 the close was: 8982
Strategy - Bar: 3338 the delta was: -177 the Close was: 8982
Thanks,
Nick
Comment