{"id":1240,"date":"2015-03-07T07:41:55","date_gmt":"2015-03-07T12:41:55","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=1240"},"modified":"2015-10-07T09:30:06","modified_gmt":"2015-10-07T14:30:06","slug":"how-to-backup-data-from-an-external-source","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2015\/03\/07\/how-to-backup-data-from-an-external-source\/","title":{"rendered":"How to backup data from an external source"},"content":{"rendered":"

There is a number of data-plugins, where AmiBroker reads quotes directly from an external database maintained by the data-vendor (such as TeleChart, FastTrack, PremiumData or other MetaStock-based sources). Depending on settings, AmiBroker may or may not keep a copy of such data in its own database. For in-depth explanation how it works see the following tutorial chapter:<\/p>

http:\/\/www.amibroker.com\/guide\/h_workspace.html<\/a><\/p>

Now, if we want to backup the data from an external data source, and use them offline, first we need to make sure that actual data are copied into AmiBroker’s local database.<\/p>

To do so, first go to File->Database Settings<\/strong> set Local Data Storage<\/strong> to Enabled<\/strong>. This instructs AmiBroker to keep its own copy of retrieved data.<\/p>

\"Database<\/p>

At this point the data are not copied yet. In order to bring them from external data source to AmiBroker local database, we need to make sure that AmiBroker accesses quotes of all symbols at least once. Only then external source will be queried for data and that data will be copied to a local database. The easiest way to do so is to run a Scan<\/strong> from Analysis<\/strong> window over all symbols, using any scanning formula, even as simple as:<\/p>Buy <\/span>= <\/span>0<\/span><\/code>

Such single-line of code can be entered in the Formula Editor, then selecting Tools–>Send to Analysis<\/strong> menu would bring up the Analysis window. At this point just make sure that Apply To<\/strong> is set to All Symbols<\/strong> and press Scan<\/strong>.<\/p>

After this the data is copied to local database. If you want to completely disconnect from external data source, you can do so by changing Data source<\/strong> to “(local database)” in File->Database Settings<\/strong>. This would allow you to use the data on a different computer. Now you can do File->Save Database As…<\/strong> to store the database into new location (or backup drive).<\/p>

If you want to re-connect to external data source, just switch the Data source<\/strong> back to original setting (i.e. the data plugin you were using before).<\/p>","protected":false},"excerpt":{"rendered":"

There is a number of data-plugins, where AmiBroker reads quotes directly from an external database maintained by the data-vendor (such as TeleChart, FastTrack, PremiumData or other MetaStock-based sources). Depending on settings, AmiBroker may or may not keep a copy of such data in its own database. For in-depth explanation how it works see the following […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1240"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=1240"}],"version-history":[{"count":1,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1240\/revisions"}],"predecessor-version":[{"id":1242,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1240\/revisions\/1242"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=1240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=1240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=1240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}