{"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> <\/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> <\/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> <\/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> <\/p>