IB Charts Not Displayed Correctly or Contain Incorrect Data
What Happened?
AgenaTrader displays a warning popup indicating:
Charts are partially incorrect or contain faulty data.
Historical data is missing, and charts are not updating (ticking).
What Does This Mean?
β IB API Limitations on Historical Data Requests
The maximum number of simultaneous historical data requests via the IB API is 50.
You should ensure that you have fewer simultaneous requests to avoid issues.
β Pacing Violations for Small Bars (β€ 30 Seconds)
A pacing violation occurs if you exceed one of the following limits:
Identical historical data request within 15 seconds.
Six or more historical data requests for the same contract, exchange, and tick type within two seconds.
More than 60 requests within 10 minutes.
β Warning: If too many historical data requests are made, you may be disconnected from the IB API. β‘ For more details on IB pacing violations for small bars, refer to this IB article.
Important Notes
π 1 instrument across 3 time frames = 3 historical requests π 1 Analyzer Escort column = 1 historical request π Watchlists, backtest lists, indicators, and alerts also require historical data.
Possible Solutions
β Reduce the number of instruments and historical requests sent to the IB server.
Monitor the green connection bar in the lower left corner of AgenaTrader.
β Wait 10 minutes before requesting additional historical data.
Be cautious: Reloading data may cause another historical overflow.
β Consider an external data feed (often paid services).
Check the data feed overview here.
π This also applies to CapTrader, Banx, Lynx, and other brokers using the TWS API connection.
Last updated