Go Back   NinjaTrader Support Forum > NinjaTrader 7 > Platform Technical Support

Platform Technical Support General platform technical support for NinjaTrader 7.

Reply
 
Thread Tools Display Modes
Old 12-14-2011, 10:17 AM   #1
svrz
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 83
Thanks: 1
Thanked 2 times in 2 posts
Default IB: Incorrect realtime volume bars created by NT

NT Version: 7.0.1000.7
TWS Version: 918.9b

For the past two days, I have noticed highly unusual volume bars for the instrument 6E 12-11 on NT created 5 minute charts in which IB is the data provider. When all historical data are reloaded, the problem is resolved. My initial thoughts were that this is a problem with IB. However when I compared the volume data for this instrument between a TWS realtime chart and one created by NT, the TWS realtime chart plots the correct volume at all times. For some reason the NT created volume bars, at times, are highly erroneous and the error is invariably on the high side.

Here are two images to illustrate the problem. This is a TWS created realtime chart:

http://tinypic.com/r/nguis6/5

and here is the equivalent chart created by NT:

http://tinypic.com/r/2z4ei4o/5

The volume bar on 14:20 CST (3rd from the left) on the TWS chart is a volume bar that is below 2500 contracts. However the NT created chart for the same bar (13:20 MST - 2nd fromt he left), shows the volume to be in excess of 5000 contracts. As I stated previously, a historical data refresh corrects this problem. However it appears that somehow NT is incorrectly calculating the realtime volume.

I understand that the most recent NT supported TWS version is 917 and what I have is 918. I was forced to upgrade to this version due to instability issues that I experienced with 917.

I have been using this version for quite a while and I noticed the first occurrence of this problem only yesterday.

Please advise.

Thanks in advance.
Last edited by svrz; 12-14-2011 at 10:24 AM.
svrz is offline  
Reply With Quote
Old 12-14-2011, 10:51 AM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 387 times in 375 posts
Default

svrz,

One thing I noticed is you are looking at an expired contract. Is this intentional?

It is possible to have real-time spiking of volume. Reloading historical data will repopulate in historical data from IB to make it correct again. This is a limitation of TWS API.

Please see the following link for more information.

http://www.ninjatrader.com/support/f...t=25700&page=6

Please let me know if I may assist further.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 12-14-2011, 11:37 AM   #3
svrz
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 83
Thanks: 1
Thanked 2 times in 2 posts
Default

Hi Adam

Thanks for the prompt reply. According to IB, the December 6E contract expires on December 19, 2011. Please see:

http://tinypic.com/r/2laejbo/5

Currently, the 6E March contract, compared to December, has much lower trading volume. So most traders have not switched as of yet.

>It is possible to have real-time spiking of volume. Reloading historical data will repopulate in historical >data from IB to make it correct again. This is a limitation of TWS API.Please see the following link for >more information.

>http://www.ninjatrader.com/support/f...t=25700&page=6

Thanks for this but I'm not sure how it is related to this problem. It seems that the poster was experiencing volume spikes during NT initialization. The problem that I'm seeing is relatively new to me which is random and erroneous volume spikes that can occur at any time after the NT initialization phase.

As I stated in my original message, the TWS realtime chart shows the correct volume at all times. I think TWS uses the same technique in reconstructing its volume bars as NT, which is to aggregate all trade sizes obtained from T&S for a desired duration (1 min, 5 min, etc.). The questions are:

1) Is NT somehow receiving bad realtime T&S data?

2) If so, why?

3) Again, if so, why doesn't TWS suffer from the same problem?

4) Adam, you mentioned the TWS API having limitations. Being somewhat familiar with the APIs and receiving all the TWS developer messages from the Yahoo TWS API support group daily. I don't recall reading anything about any major T&S issues or limitations. Can you kindly be more specific?

Thanks again and take care.
svrz is offline  
Reply With Quote
Old 12-14-2011, 12:03 PM   #4
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 387 times in 375 posts
Default

svrz,

Quote:
1) Is NT somehow receiving bad realtime T&S data?

2) If so, why?

3) Again, if so, why doesn't TWS suffer from the same problem?

4) Adam, you mentioned the TWS API having limitations. Being somewhat familiar with the APIs and receiving all the TWS developer messages from the Yahoo TWS API support group daily. I don't recall reading anything about any major T&S issues or limitations. Can you kindly be more specific?
1) We are receiving data IB sends us through their API. The volume spikes are a known issue and we are awaiting development on IB's side to correct the issue.

2) Unfortunately, I can't comment on why its occurring other than to say that development is aware of the issue after extensive testing, and they have concluded its not something we currently have any control over. However, development has communicated this with IB and they are working together on a resolution.

3) Only applications connected through the TWS API have been shown to run into this current limitation.

4) Please see 2), apologies for any inconvenience.

Please let us know if you require any additional assistance.
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
Old 12-14-2011, 12:18 PM   #5
svrz
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 83
Thanks: 1
Thanked 2 times in 2 posts
Default

Greetings Adam

I greatly appreciate you promptly answering my questions in detail.

>1) The volume spikes are a known issue and we are awaiting development on IB's side to correct the >issue.

>2) However, development has communicated this with IB and they are working together on a resolution.

>3) Only applications connected through the TWS API have been shown to run into this current >limitation.

Fair enough and points well taken. I will wait for a final resolution to this issue. Please follow up with IB as many times as possible. Furthermore if there is anything we the IB clients can do, please let us know.

Thanks again and take care.
svrz is offline  
Reply With Quote
The following user says thank you to svrz for this post:
Old 06-19-2014, 07:55 AM   #6
Mich62
Junior Member
 
Join Date: Jun 2011
Posts: 8
Thanks: 4
Thanked 0 times in 0 posts
Default

NT Version: 7.0.1000.22
TWS Version: 944.3

I am having the exact problem with the volume spikes. Please advice.

Thanks!
Mich62 is offline  
Reply With Quote
Old 06-19-2014, 08:09 AM   #7
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 26,199
Thanks: 487
Thanked 1,840 times in 1,781 posts
Default

Mich62, welcome to our forums - unfortunately Adam's post #4 comments would still apply to the current situation.
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
Old 06-19-2014, 08:44 AM   #8
Harry
Senior Member
 
Join Date: Oct 2007
Posts: 2,906
Thanks: 127
Thanked 639 times in 490 posts
Default

The volume spikes occur when you run NinjaTrader / TWS for a while and then open a new chart with a different instrument. The volume shown is close to the cumulated volume between the time when you had connected NinjaTrader to TWS and the time when you open the new chart.

This is a known bug.


Workarounds:

(1) When you open a new chart - say for ES 09-14 - then you may switch to another instrument (anyone) and then back to ES 09-14. The volume spike should now be gone.

(2) The real-time volume supplied by Interactive Brokers is definitely false. Only when you refresh a (minute) chart, false real-time volume will be replaced with correct historical volume. I would therefore suggest to use Kinetick as a data feed (first connect) when you trade via Interactive Brokers.
Harry is offline  
Reply With Quote
The following user says thank you to Harry for this post:
Old 06-24-2014, 06:31 AM   #9
Mich62
Junior Member
 
Join Date: Jun 2011
Posts: 8
Thanks: 4
Thanked 0 times in 0 posts
Default

The problem occured the days just before contract expiration (of the FDAXM14 contract on Friday 20th.) Since rollover to the next contract, FDAXU14, I didn't have the problem anymore.

The original post, #1 from svrz, dates from dec 14th, just before expiring the december Euro contract (6E 12-11).

So, I believe it has something to do with contract expiration.

Try to rollover to the next contract month if you receive unexpected volume spikes.
Mich62 is offline  
Reply With Quote
Old 06-24-2014, 09:26 AM   #10
Harry
Senior Member
 
Join Date: Oct 2007
Posts: 2,906
Thanks: 127
Thanked 639 times in 490 posts
Default

Quote:
Originally Posted by Mich62 View Post
The problem occured the days just before contract expiration (of the FDAXM14 contract on Friday 20th.) Since rollover to the next contract, FDAXU14, I didn't have the problem anymore.

The original post, #1 from svrz, dates from dec 14th, just before expiring the december Euro contract (6E 12-11).

So, I believe it has something to do with contract expiration.

Try to rollover to the next contract month if you receive unexpected volume spikes.
Problem is not related to rollover but may occur any time, when you connect to IB and open a chart a few hours later.
Harry is offline  
Reply With Quote
Reply

Tags
incorrect data, tws, volume

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
Volume bars for FX Futures from IB Scooter1 Platform Technical Support 1 05-04-2010 05:41 AM
IB Historical Volume Bars jojab Platform Technical Support 1 02-14-2008 09:13 AM


All times are GMT -6. The time now is 04:14 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content. Visit the CFTC resources for education regarding the industry and signs of fraud.