{"id":334,"date":"2014-09-23T04:29:21","date_gmt":"2014-09-23T09:29:21","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=334"},"modified":"2014-12-04T04:57:27","modified_gmt":"2014-12-04T09:57:27","slug":"how-to-backfill-all-symbols-in-rt-database","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/09\/23\/how-to-backfill-all-symbols-in-rt-database\/","title":{"rendered":"How to backfill all symbols in RT database"},"content":{"rendered":"
Various data sources have different backfill capabilities, therefore the procedure to backfill all symbols varies. There are three categories of data sources, those that offer:<\/p>
As a general rule, all real-time data sources provide backfills on-demand, which means that backfill for each symbol has to be requested separately. If data source provides backfill and there are missing quotes in the database, AmiBroker will automatically request backfill on first access to given symbol<\/strong>. So, as soon as you display its chart fresh data will be requested and backfilled. Backfill is not immediate, because it is Internet-based process that involves request-response procedure, so data are requested from external server and arrive in a few seconds or so. <\/p> It is worth to note that not all data sources support this feature. It needs to be handled by the data plugin, and many 3rd party plugins do not offer this.<\/p> If you are using eSignal or IQFeed or other data source with automatic, unlimited backfill you can use procedure described in How to use Real-Time data sources<\/a> tutorial.<\/p> If you are using Interactive Brokers then the procedure is differnet since Interactive Brokers puts lots of limitations on backfills. To learn how to backfill all symbols using Interactive Brokers please read this dedicated tutorial on IB<\/a>.<\/p>
The same procedure is performed when doing any access including running Analysis<\/strong>, so backfill is requested as soon as given symbol is accessed, but by default Analysis<\/strong> window will not wait until backfill data arrive unless you turn on the Wait for backfill<\/strong> option (provided that data source supports it). <\/p>