![]() |
|
|||||||
| Miscellaneous Support Miscellaneous support issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Oct 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
|
Reading the docs, I am under the understanding that historical tic data cannot be acquired from Interactive Brokers. However, real time is where I am concerned. Perhaps I have missed the part in the documentation about this.
Lets say I'm running a strategy that uses 1 minute bars. Does ninjatrader build those 1 minute realtime bars using ticks that are comming through from Interactive Brokers? or does it build the bars using the 5 second snapshots that Interactive brokers API provides? I had wrote my own platform several years ago for IB so I am familiar with the issues surrounding the streaming ticks IB provides, and hence the reason they introduced the 5 second snapshot to the API a few years ago. Can you confirm which of these methods are actually used to build the 1 minute bar in a real time strategy ran against IB? Thanks |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Hi,
Bars are built from their real-time tick feed, not the 5 second snapshot data.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
|
You should have a warning on your page saying that if you use Interactive Brokers for your data feed that any strategy that uses volume will not be accurate. What I mean is even if you get your historical data from Interactive brokers or any other vendor and test out a strategy that utilizes volume in anyway, this strategy will not behave the same in real time. Granted most strategies do not behave the same in real time as they do in backtesting, but the fact the bars are built using the IB tick data it makes the difference far greater.
Last edited by frostengine; 10-25-2008 at 02:46 PM.
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Thanks for the suggestion.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Oct 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
|
My main concern is only the volume on my minute bars being accurate. You verified earlier that the minute bars are indeed built with the innacuate ticks that IB sends. However, IB also routinely sends cummulative volume updates. Do you know if these updates are then used to correct the volume? If i'm not mistaken programs such as amibroker collect the ticks data and creates a cumulative volume from there, then they compare the volume total from the ticks to these "cumulative volume" updates IB sends and adjusts the volume if incorrect.
Do you know if ninjatrader does something similiar? Thanks |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
To clarify -
- Historical minute data is retrieved from IB servers - Real-time minute bars are built from real-time ticks but there is some logic in place to feed in missing volume (I believe using Daily Volume event) or something like that
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Oct 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
|
That is exactly what I was asking. So it does in fact have logic to correct the missing volume.
Thanks for the help |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Apr 2009
Location: UK
Posts: 191
Thanks: 1
Thanked 3 times in 3 posts
|
Hi guys
I know this is an older post but does the above situation still apply with IB regarding volume?. I have been doing some tick level testing of there feed compared to IQFeed and the volume numbers are not the same. I can see that the tick feed at IB is snapshotted but I assumed the snapshot would be an accurate representation of the raw feed, what I'm seeing is that volume reported at certain price levels via the snapshot is not accurate compared to the raw tick feed from IQ. I was wondering if there is documentation somewhere that explains this issue and what is the resolution. Thanks Ross |
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
This is still the case with the IB live data feed that NinjaTrader uses unfortunately. If you need accurate volume data the solution is to get this data from another source such as IQFeed as you mention as IB does not provide the granular data needed for these realtime tick/volume data to be calculated correctly. You can in NinjaTrader connect to your data feed provider first in NinjaTrader to prioritize data from this feed. Then connect to your broker second to bring in the account so that you are able to trade it. When connecting to the data feed first you are then able to prioritize this data over your brokers data. -Brett
Brett
NinjaTrader Customer Service
Last edited by NinjaTrader_Brett; 12-21-2011 at 06:15 AM.
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Dec 2009
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
|
How many days of actual intraday data does the IB provide when connected in ninjatrader 7?
|
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,327
Thanks: 146
Thanked 252 times in 248 posts
|
Hi dr0832,
Thanks for your post. I'd recommend that you check in to this with IB support as I'm not sure if the total would be the same for all instruments/intervals.
Kyle
NinjaTrader Customer Service |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Dec 2009
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
|
I just trade stocks.
|
|
|
|
|
|
#13 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
The data that you can get inside TWS you can also get in NinjaTrader. I know for daily data its 1 year however for minute data I'm not exactly sure how far back you can request data. A good way to test is to pull up a chart inside of IB's TWS. How much data you can get back in here would be also available inside of NinjaTrader. -Brett
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Dec 2009
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
|
It looks like only 5 days. Thanks
|
|
|
|
|
|
#15 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Thanks for updating us.
-Brett
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does NinjaTrader pull in historical data from Interactive Brokers? | tradefaz | Miscellaneous Support | 1 | 08-21-2008 03:23 PM |
| Interactive Brokers Order Rejected: Request For Market Data | geoMEAN | Automated Trading | 3 | 05-22-2008 10:37 PM |
| Interactive brokers as data only providers | geoarb | Connecting | 12 | 02-13-2008 08:10 PM |
| Missing data with Interactive Brokers | Harry | Connecting | 1 | 01-20-2008 04:44 PM |
| Interactive Brokers and Historical Data | gsmaster | Connecting | 4 | 08-16-2007 05:13 PM |