Hi there
I am trying to get the MC working with IB. However, as soon as I connect I start getting historical data pacing violations. As far as I can see I am only loading one 1 minute chart so how can that be?
I tried turning off the historical data but then that makes it unworkable.
Am I missing a trick here?
Also, I am looking for a standard VWAP but this does not seem to be present - only a VWAP_reset - is this the same thing?
Thanks in advance for any assistance.
Olly
Issue with IB and question
Re: Issue with IB and question
That is normal with the IB API. 1 minute data is requested in chunks and it will take several requests just to get a single days data. If you are trying to load many days of 1 minute data for the first time, you will certainly get pacing violations. MC.net will keep trying and once IB's pacing restrictions have expired MC.net will make data requests again. This oscillation between pacing violations and data retrieval will continue until the chart is loaded. It takes time.
With kind regards,
MK
With kind regards,
MK
Re: Issue with IB and question
Hey
Thanks for the response.
I generally trade stocks which means I could be looking at many different charts throughout the day - Are you suggesting that this might not be possible using MC?
Is there anything I can do to maybe just restrict it to collecting a few hours of data rather than several days?
Thanks again.
Olly
Thanks for the response.
I generally trade stocks which means I could be looking at many different charts throughout the day - Are you suggesting that this might not be possible using MC?
Is there anything I can do to maybe just restrict it to collecting a few hours of data rather than several days?
Thanks again.
Olly
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Issue with IB and question
That depends on how many charts you look at and how much data for these symbols is already in the database.I generally trade stocks which means I could be looking at many different charts throughout the day - Are you suggesting that this might not be possible using MC?
That depends on how much data for the symbols is already in the database. If you have, for example, a daily market scanner list which downloads data every day, there are only small gaps to be filled so you're not that likely to run into the historical market data violation.Is there anything I can do to maybe just restrict it to collecting a few hours of data rather than several days?
But if you open multiple charts that have no data for the last 30 days, you'll obviously need to download a lot more data from IB and thus run into the market data violation.
In general, if you 'take care of' your database and data collection, there's no need to worry about the IB historical data violation (under the assumption that you trade minute bars or higher).
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Issue with IB and question
ollyno1uk, to learn how to reset the "Pacing Violation" please refer to the following article: Interactive Brokers Pacing Violation
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Issue with IB and question
Please find the study attached.Also, I am looking for a standard VWAP but this does not seem to be present - only a VWAP_reset - is this the same thing?
- Attachments
-
- vwap_non_reset.pln
- (1.7 KiB) Downloaded 430 times