{"id":918,"date":"2014-12-09T15:40:51","date_gmt":"2014-12-09T20:40:51","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=918"},"modified":"2014-12-10T15:43:14","modified_gmt":"2014-12-10T20:43:14","slug":"full-name-in-the-price-chart","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/12\/09\/full-name-in-the-price-chart\/","title":{"rendered":"How to add full name to the Price chart title"},"content":{"rendered":"

The full name of the security can be retrieved in AFL using FullName()<\/strong> function. <\/p>

In order to add such information to the built-in Price chart, we need to do the following:<\/p>

  1. Click on the chart with right mouse button
  2. Choose Edit Formula<\/strong> from the context menu
  3. Modify the Title definition line, the built-in code contains:_N<\/span>(<\/span>Title <\/span>= <\/span>StrFormat<\/span>(<\/span>"{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%)"<\/span>,
                         <\/span>O<\/span>, <\/span>H<\/span>, <\/span>L<\/span>, <\/span>C<\/span>, <\/span>SelectedValue<\/span>( <\/span>ROC<\/span>( <\/span>C<\/span>, <\/span>1 <\/span>) ) ))<\/code>

    We need to change it into:<\/p>_N<\/span>(<\/span>Title <\/span>= <\/span>StrFormat<\/span>(<\/span>"{{NAME}} - " <\/span>+
                          <\/span>FullName<\/span>() +
                          <\/span>" - {{INTERVAL}} {{DATE}} " <\/span>+
                          <\/span>"Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol %.0f"<\/span>,
                          <\/span>O<\/span>, <\/span>H<\/span>, <\/span>L<\/span>, <\/span>C<\/span>, <\/span>SelectedValue<\/span>( <\/span>ROC<\/span>( <\/span>C<\/span>, <\/span>1 <\/span>) ), <\/span>V <\/span>) )<\/code>

  4. To apply these changes choose Tools->Apply Indicator<\/strong> from the menu.<\/ol>

    If we have Full name<\/strong> information imported into the database and visible in Symbol->Information<\/strong> window, the updated chart title will show it next to the ticker name.<\/p>

    \"Fullname<\/p>","protected":false},"excerpt":{"rendered":"

    The full name of the security can be retrieved in AFL using FullName() function. In order to add such information to the built-in Price chart, we need to do the following:Click on the chart with right mouse buttonChoose Edit Formula from the context menuModify the Title definition line, the built-in code contains:_N(Title = StrFormat("{{NAME}} – {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%)",                     O, H, L, C, SelectedValue( ROC( C, 1 ) ) ))We need to change […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[53,55,45],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/918"}],"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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=918"}],"version-history":[{"count":3,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/918\/revisions"}],"predecessor-version":[{"id":945,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/918\/revisions\/945"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}