![]() |
|
|
#1 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
Using 6.5.1000.7 and IQFeed, I've found, by comparing trades seen by OnMarketData callback with historical tick data from IQFeed, that the OnMarketData routine is being sent duplicate trades (about 1 duplicate in every 50 to 100 trades). These duplicates always happen immediately after the real trade, and occassionally have a different bid/ask associated with them (since the bid/ask may have drifted). This occurs with all of the index futures I've tested, and continues to occur if I disconnect and reconnect the IQFeed (so unlikely a problem with a particular server).
I notice that a bug like this has been reported in the past, but am not sure what its current status is. This is, obviously, a huge problem for anyone like myself who is tracking tick data. Anyone know anything more about this? Thanks. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
|
Hello,
Thank you for your note. I suggest to upgrade to the current version of NinjaTrader and test the issue: Please download from this link: http://www.ninjatrader.com/webnew/do...g_software.htm
Ray S
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks. Have upgraded to .9 version and will look at data again for rest of day and overnight. (The problem wasn't mentioned in the update notes, so I avoided doing an upgrade to my otherwise stable system.
) Will report back here when I've got enough data collected...
|
|
|
|
|
|
#4 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
Got an exact match with historical tick data from IQFeed between 3:30 and 3:40 PM ... will continue monitoring.
Were there some changes to related OnMarketData code that could account for this fix (so I can justify thinking the problem is truly gone)? Thanks. |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
|
Not that I know of, so please let me know your results.
Thank you!
Ray S
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
One duplicate trade found at 4:15:00.
May be that problem has always been there, but that its magnitude varies with some not-yet-defined set of circumstances. Will keep looking... |
|
|
|
|
|
#7 | |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
The single duplicate trade noted in previous post might also simply be a tick error. As explained on the DTN/IQFeed forum...
Quote:
|
|
|
|
|
|
|
#8 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
In overnight trading, I found:
2 ES duplicate trades at 7:32:41 PM, 3:47:50 AM 6 NQ duplicate trades at 7:29:25 PM, 1:49:05 AM, 2:04:22, 3:47:57, 4:38:49, 4:39:39 The proximity of the 2 ES trades with the corresponding 2 NQ trades is interesting, suggesting a common cause for these duplicates. Well, this looks like an NT bug to me. With thousands of intervening trades showing no duplicates, its hard to imagine what I could be doing in my own code to cause the duplicates. (BTW, in 6/8 of the above duplicates, the bid or ask had changed, implying that I received an intervening bid or ask price change message. Although in yesterday's trading, the fraction with bid/ask changes was smaller.) (Another thing: The computer was unattended during this time, devoted only to capturing trade data. I guess another possibility is some sort of internet communication glitch, although the duplicates yesterday occurred during RTH with no internet disconnects.)
Last edited by greentrader; 04-14-2009 at 04:58 AM.
|
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
|
Hi Greentrader,
Can you provide me with the exact steps you took to reproduce this? We can then test on our end. Thank you!
Ray S
NinjaTrader Customer Service |
|
|
|
|
|
#10 | |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
This is probably a case where you guys should develop your own test code so that you can keep an eye on this stuff. I'm just trying to get past this problem, and hope to not have to monitor it in the future, so my current code is not optimized for detecting such issues, but I can outline for you the steps needed to develop such code. |
|
|
|
|
|
|
#11 |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
I guess I'm going to put this down for awhile and just deal with it by updating my data files with historical data a bit more often.
For NQ today, there was one more duplicate at 5:44:48 AM ET, and then no others through 2:30 PM (last time I checked). Some observations: - some days I see many dups, others hardly any - rate of dups seems more connected to elapsed time than trade rate - dups happen both within and outside of RTH - not fixed by version update, restarting NT, or restarting strategies - dups not dependent on user activity, or other running apps - IQFeed claims they're not the culprit, but still possible (I guess I can check that by having SierraChart save tick data along with NT, and then seeing if they see the same dups - will let you know what I find) |
|
|
|
|
|
#12 |
|
NinjaTrader Customer Service
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
|
You should not compare to other platforms.
What are your results when you use the export tick data feature for comparison?
Ray S
NinjaTrader Customer Service |
|
|
|
|
|
#13 | |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
![]() Answer: The duplicate trades do not show up in your tick export, so the problem appears to be within NT's OnMarketData messaging. Well that should be easy for you guys to see by just watching for when your messages get out of sync with your trade count. If you can't reproduce it, then I can try putting together a simpler strategy that illustrates the problem. Thanks again for all the feedback on this. --------- Edit: The above assumes that the NT tick export is based on recorded realtime data, but if it's just being obtained from historical IQFeed, then we haven't learned anything new.
Last edited by greentrader; 04-14-2009 at 02:28 PM.
|
|
|
|
|
|
|
#14 |
|
NinjaTrader Customer Service
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
|
Hi,
If you wouldn't mind creating that strategy and posting it as well as what instrument and time frame, that would help a lot in troubleshooting. Thank you!
Ray S
NinjaTrader Customer Service |
|
|
|
|
|
#15 | |
|
Member
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
-------- Edit: Not seeing any DailyVolumes reported, so will have to try something else.
Last edited by greentrader; 04-14-2009 at 06:24 PM.
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| duplicate oif | kiwibird | Automated Trading | 11 | 01-02-2009 02:49 PM |
| Live trades not appearing in Positions tab but bogus trades showing up | bluelou | Automated Trading | 5 | 10-16-2008 06:39 AM |
| Duplicate data | kemin | Charting | 1 | 10-13-2008 03:03 AM |
| Duplicate Data | zoltran | Historical NinjaTrader 6.5 Beta Threads | 3 | 11-26-2007 07:03 AM |
| Duplicate Entry | gregw | Miscellaneous Support | 3 | 01-09-2006 09:45 AM |