{"id":1311,"date":"2015-12-29T00:12:39","date_gmt":"2015-12-28T23:12:39","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=1311"},"modified":"2016-01-29T00:18:45","modified_gmt":"2016-01-28T23:18:45","slug":"how-to-fix-outdated-web-research-links","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2015\/12\/29\/how-to-fix-outdated-web-research-links\/","title":{"rendered":"How to fix outdated web research links"},"content":{"rendered":"
Built-in Web Research window allows to browse symbol-related websites based on the active symbol selected in AmiBroker, so navigation is much more convenient than searching for symbols in regular web-browser. The following tutorial chapter explains this functionality in details: http:\/\/www.amibroker.com\/guide\/h_webresearch.html<\/a><\/p> Since AmiBroker stores pre-defined link templates, there is a possibility that given website changes the structure of their addresses and that would also require us to modify the link templates in AmiBroker configuration to match new website structure.<\/p> When the Web research window shows error 404 or other message indicating that the address may not be correct, then we would need to perform the following actions (this example discusses changes at MarketWatch).<\/p> First we need to check for a sample symbol’s web page directly at given website to see what address is being used. Let us search for AAPL and MSFT symbols profile at MarketWatch. The addresses are the following:<\/p> http:\/\/www.marketwatch.com\/investing\/stock\/msft\/profile<\/a> Therefore, if we want AmiBroker to place the selected ticker name in the link, then we need to define the following template:<\/p> {t} item in the above address evaluates to the ticker symbol based on our selection in the program.<\/p> After that, we need to check what is the pre-defined template stored in Tools->Customize->Web Pages<\/strong>. If it is different than the link structure currently used at MarketWatch, then we need to update the stored address with the template shown above. The difference would mean that the website structure has changed since the link templates were added to AmiBroker configuration.<\/p> <\/p> Now the modified Profile page links match Marketwatch website and the company profile will work correctly in Web Research window.<\/p>","protected":false},"excerpt":{"rendered":" Built-in Web Research window allows to browse symbol-related websites based on the active symbol selected in AmiBroker, so navigation is much more convenient than searching for symbols in regular web-browser. The following tutorial chapter explains this functionality in details: http:\/\/www.amibroker.com\/guide\/h_webresearch.htmlSince AmiBroker stores pre-defined link templates, there is a possibility that given website changes the structure […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[93,67],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1311"}],"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=1311"}],"version-history":[{"count":2,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1311\/revisions"}],"predecessor-version":[{"id":1315,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1311\/revisions\/1315"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=1311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=1311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=1311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
http:\/\/www.marketwatch.com\/investing\/stock\/aapl\/profile<\/a><\/p>\rhttp:\/\/www.marketwatch.com\/investing\/stock\/{t}\/profile\r<\/pre>