Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Delta value printed from strategy not matching chart data window
Collapse
X
-
Do you mean the actual output of CurrentBars[2] or the Closes[2][0]? Closes[2][0] is printing the current Last price of ES.
-
-
-
Hello Lance El Camino,
With or without TickReplay?
I am assuming you mean with TickReplay.
As the indicator updates with the 1-tick series, you would want to move the logic to the BarsInProgress of that 1 tick series. With TickReplay enabled and Calculate set to OnEachTick, BarsInProgress 0 would be updating before BarsInProgress 1, so the last tick update of BarsInProgress 1 would not be included with the last tick update of BarsInProgress 0.
I've adjusted the code to work with TickReplay and print during BarsInProgress 1 (after the 1 tick series has updated the indicator) and the values are still the same.
Chelsea B.NinjaTrader Customer Service
Comment
-
Thank you again! I've been using Market Replay OnEachTick for everything. I also noticed that when I reloaded the historical data on the actual chart the values matched and the values of volume for the ES Volume chart changed for the current bar from what it was before I reloaded the historical data. I believe that was the issue this whole time. Could it be that there are minor hiccups when running Market Replay OnEachTick? Seems like when a lot of volume hits it slows down or pauses to process each tick and affects the bar construction on the Volume chart.
Comment
-
Would there be any advantage to calling the Volumetric Bar Delta instead of Order Flow Cumulative Delta?
Comment
-
Comment
-
Comment
-
Hello Lance El Camino,
The Playback Connection with Market Replay data plays back as real-time data. Anything that loads on the chart when the chart first opens is historical data. Historical data loads on the chart, and then the playback will play back Market Replay data as real-time data.I've been using Market Replay OnEachTick for everything.
I am asking if in the historical data if you are using TickReplay. TickReplay is different than Playback with Market Replay or Tick data.
Below is a link to a video on Playback.
https://www.youtube.com/watch?v=CktT...vDBcC&index=17
In historical if TickReplay is not enabled, Calculate will always be OnBarClose and will not update intra-bar for each price change or tick with OnEachTick or OnPriceChange.
This means in the historical data, you are actually running the script with OnBarClose as you do not have TickReplay enabled.
TickReplay must be enabled for a script to update Calculate for OnEachTick or OnPriceChange historically.
https://ninjatrader.com/support/foru...377#post773377
I am not able to reproduce this behavior.I also noticed that when I reloaded the historical data on the actual chart the values matched and the values of volume for the ES Volume chart changed for the current bar from what it was before I reloaded the historical data. I believe that was the issue this whole time. Could it be that there are minor hiccups when running Market Replay OnEachTick?
To confirm, if you start by following the exact steps I have shown in the video, the values are not matching the chart when you first apply the strategy?
If you reload the values match the chart or are still not matching the chart?
The code for adding volumetric bars and using the values not typical. Some mind find a learning curve of how to call volumetric bar information.Would there be any advantage to calling the Volumetric Bar Delta instead of Order Flow Cumulative Delta?Chelsea B.NinjaTrader Customer Service
Comment
-
Comment
-
Sorry I didn't answer your question, "If you reload the values match the chart or are still not matching the chart?" If I reload it matches. So that's what I believe was the initial problem. If running realtime data I thought Tick Replay wasn't necessary?
Comment
-
Hello Lance El Camino,
For historical data loading in Playback, yes TickReplay still has to be enabled to allow Calculate to update for OnEachTick or OnPriceChange in historical.
Playback with Market Replay is real-time data only. This is not historical data. This plays back as real-time.
If you are not processing historical data, and you are doing an 'if (State == State.Historical) return' to not preocess the historical data, this would not apply. However, even in real-time I am getting the exact same values as the chart for every tick update.
Are you only processing the real-time data by returning in historical?
Are you printing the State in your print to confirm this is historical or real-time?Chelsea B.NinjaTrader Customer Service
Comment
-
My replay data is set to Market Replay. Also, there is a time difference in the output of BIP 0 and BIP 1 in the strategy.
Comment
-
Hello Lance El Camino,
It is expected a 1 tick series which has the time stamp of each tick, would be different than the time stamp of the close time of a larger primary bar.
Following the exact steps shown in the video I have provided you, with the exact code in the video, are you getting different behavior than what is shown in the video?Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
577 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment