{"id":655,"date":"2014-10-28T17:33:36","date_gmt":"2014-10-28T22:33:36","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=655"},"modified":"2014-12-04T05:23:38","modified_gmt":"2014-12-04T10:23:38","slug":"how-to-create-toolbar-button-for-custom-interval","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/10\/28\/how-to-create-toolbar-button-for-custom-interval\/","title":{"rendered":"How to create toolbar button for custom interval"},"content":{"rendered":"

IMPORTANT NOTE:<\/em> Before you add toolbar buttons for dozens of intervals please note that any interval can be picked from Interval Selector combo-box. If given interval is not present, you can just type it: 7m means 7-minute, 3h means 3-hour, 2D is 2-day), as shown below:<\/p>

\"Custom<\/p>

In order to add custom time-interval buttons onto the toolbar we first need to define our custom intervals in Tools->Preferences->Intraday<\/strong>:<\/p>

\"Custom<\/p>

Now, in order to customize the toolbar go to Tools-> Customize<\/strong> menu. That switches AmiBroker into special customization mode.<\/p>

Now, while keeping the customize dialog open, we can just go to View->Intraday<\/strong> menu and pick the items we need, then start dragging it with the mouse cursor to the toolbar of our choice. <\/p>

\"Custom<\/p>

If we keep holding down CTRL key while dragging the items, a copy will be created on the toolbar, so the items will not be removed from the original menu.<\/p>

\"Custom<\/p>

It is also possible to replace the default text-description with a button image. This is further explained in the manual:
http:\/\/www.amibroker.com\/guide\/h_customizeui.html<\/a><\/p>","protected":false},"excerpt":{"rendered":"

IMPORTANT NOTE: Before you add toolbar buttons for dozens of intervals please note that any interval can be picked from Interval Selector combo-box. If given interval is not present, you can just type it: 7m means 7-minute, 3h means 3-hour, 2D is 2-day), as shown below:In order to add custom time-interval buttons onto the toolbar […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[24],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/655"}],"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=655"}],"version-history":[{"count":2,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/655\/revisions\/663"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}