NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 07-25-2008, 11:01 AM   #1
Breakeven
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default Live Chart not matching Replay Chart

I am having a problem with chart data not displaying correctly during live market hours, but the replay data is correct when replaying the chart.

I am currently running NT on a demo account using the Zenfire datafeed as I am considering changing brokers/software.

In the attached image, the four bars on the left were taken while connected to live Zenfire. This connection had been active since before 8:30am CST so all data should be displayed as it was received. The image was taken before disconnecting from Zenfire. The four bars on the right of the image were taken after connecting to "Market Replay" for the same time period. The open of the third bar of this image is off by 1.75 ES points. The horizontal scale lines in the image are 8 ES ticks.

The Market Replay appears to be correct as it matches my current broker data (IB). I was trading my current broker at the time this happened with NT so I cannot give specifics regarding what was going on at the time.

I can understand a tick here or there being different compared to IB (I know their data limitations), but 7 ticks off is a bit of a range.

Also, after getting the screenshot of the replay I reconnected to Zenfire then used the "Reload Historical Data". It returned an exact match to the live collected data (still incorrect).

The instance I have detailed above is not the only time this has happened. There were at least two instances of the same behavior yesterday as well.

Any thoughts?
Attached Images
File Type: png difference.png (6.5 KB, 17 views)
Breakeven is offline  
Reply With Quote
Old 07-25-2008, 11:56 AM   #2
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

This is very possible as the data from IB is filtered and the Zen-Fire data is not.

Also the replay is starting at a specific time (fresh bar starting at that time) where as the realtime may have already had half a bar built at that time. This would change the bars and the opens for each.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 07-25-2008, 12:05 PM   #3
Breakeven
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default

The images are both of Zenfire. This is not a comparison picture to IB. The Market Replay was started at a replay time of 8:30 am CST. As you can see on the time scale of the image, the bars in question are 8:55 9:00 am CST.

How does the market replay record correct data, yet my live charts do not display this data?

If Zenfire sent the data to my computer (as they must have if it is recorded for the replay), why can I not refresh historical data and get within at least 2 ES points?

*edit*: Also, if Zenfire is unfiltered, does that mean the ES traded one tick at 1254.75 and the next tick at 1255.50 during a normal RTH session this morning? That is what the NT chart is saying.
Last edited by Breakeven; 07-25-2008 at 12:12 PM.
Breakeven is offline  
Reply With Quote
Old 07-25-2008, 01:19 PM   #4
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

The Market replay just records your real-time data. So it can't be different then your real-time data.

I did not mean the time stamps for the bars in your screen shot I meant the chart in total. Ticks chart build bars by number of ticks so your two charts can incompass different amounts of ticks in total which means the bars will not display the same.

Example:

Let's say you have a tick (tick "A") with a time stamp of 10:31:00 AM which gets packaged into the 10:32:00 AM bar and happens to be the high of that bar. On your replay, this tick gets put into an earlier bar (because the chart starts with a different number of ticks) the 10:32:00 AM bar now looks different since the high made by TICK "A" is now part of the prior bar, 10:31:00 AM.

This is just a general example of how tick charts can be different. Your replay data is only captured real-time data so it isn't right/wrong it is the same.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 07-25-2008, 02:05 PM   #5
Breakeven
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default

Just to clarify, these bars are time based bars, 5Min each. The difference is not just a tick missing, it is 7 ticks.

In your reference to tick based bars I could understand what you mean, if the chart were set to a certain number of ticks per bar.

But, if a price comes in with a timestamp of 8:59:59 are you saying on a time based chart it might get charted in the 9:00:00 bar (where it should be due to your end of bar timing) or maybe in the 9:05:00 bar?

I don't mean to seem like I am hounding you on this, but it seems we agree that the live and recorded data should match since they are the same data.

It is my understanding that Ninja builds charts based on the timestamp of the data, is this correct?

When a new 5Min bar begins, lets say the 09:05:00 bar (which should have data from 9:00-9:05), what timestamp triggers a new bar?

Thanks very much for your help!
Breakeven is offline  
Reply With Quote
Old 07-25-2008, 02:33 PM   #6
Breakeven
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Jessica View Post

Let's say you have a tick (tick "A") with a time stamp of 10:31:00 AM which gets packaged into the 10:32:00 AM bar and happens to be the high of that bar. On your replay, this tick gets put into an earlier bar (because the chart starts with a different number of ticks) the 10:32:00 AM bar now looks different since the high made by TICK "A" is now part of the prior bar, 10:31:00 AM.
OK, was digging through the help file on how Ninja builds its charts and found this.

Makes sense if the timestamp is coming from my computer, but isn't Zenfire data sent including the timestamp?
Breakeven is offline  
Reply With Quote
Old 07-25-2008, 03:00 PM   #7
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

When the data was stored in real-time it received a time stamp from your PC and these are the time stamps in your market replay.

Then the real-time chart had the historical data reloaded and now contains the time stamps from the historical data server.

I hope that clears it up- Real-time/Replay= PC time stamp and Historical Reload= Server time stamp
NinjaTrader_Jessica is offline  
Reply With Quote
Old 07-25-2008, 03:33 PM   #8
Breakeven
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Jessica View Post
Then the real-time chart had the historical data reloaded and now contains the time stamps from the historical data server.

I hope that clears it up- Real-time/Replay= PC time stamp and Historical Reload= Server time stamp
The screenshot was taken of the live data before I disconnected from the live feed. At the time of the screenshot the data had not been reloaded.

Is the Zenfire datafeed sent with a timestamp?

It is my understanding that Ninja builds charts based on the timestamp of the data, is this correct?

When a new 5Min bar begins, lets say the 09:05:00 bar (which should have data from 9:00-9:05), what timestamp triggers a new bar (hh:mm:ss)?
Breakeven is offline  
Reply With Quote
Old 07-25-2008, 03:39 PM   #9
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

What type of chart was your screen shot taken on (tick, minute, etc)?
NinjaTrader_Jessica is offline  
Reply With Quote
Old 07-25-2008, 03:47 PM   #10
Breakeven
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default

Minute. Set to 5 Minute display.
Breakeven is offline  
Reply With Quote
Old 07-25-2008, 04:41 PM   #11
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

Then I am not sure, but you can send a full screen shot of each chart to support AT ninjatrader DOT com for further review.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 07-25-2008, 08:10 PM   #12
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Zen-Fire sends time stamps so both real-time and historical data will show the same thing. Market Replay takes incoming ticks and time stamps them with local time. This can account for subtle differences.
NinjaTrader_Ray is offline  
Reply With Quote
Old 07-25-2008, 09:41 PM   #13
Breakeven
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Ray View Post
Market Replay takes incoming ticks and time stamps them with local time.
Ahh! That explains the difference. I will experiment with this the next time the markets are open.

Thank you very much for the help Jessica and Ray!
Breakeven is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart Stops Displaying Live feed negima Miscellaneous Support 1 03-11-2008 01:08 PM
P&L not showing commish in chart trader when live foxthorn Miscellaneous Support 3 02-08-2008 08:46 AM
chart not running live data chuck Miscellaneous Support 1 01-21-2008 09:29 AM
View Chart of replay trades ashish Historical NinjaTrader 6.5 Beta Threads 1 12-05-2007 04:13 AM
Replay Date on Chart WinSum Suggestions And Feedback 1 01-15-2006 05:23 PM


All times are GMT -6. The time now is 09:21 AM.