{"id":688,"date":"2014-11-05T04:51:34","date_gmt":"2014-11-05T09:51:34","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=688"},"modified":"2014-12-04T04:28:28","modified_gmt":"2014-12-04T09:28:28","slug":"how-to-adjust-the-number-of-blank-bars-in-right-margin","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/11\/05\/how-to-adjust-the-number-of-blank-bars-in-right-margin\/","title":{"rendered":"How to adjust the number of blank bars in right margin"},"content":{"rendered":"

The default number of bars shown in the right-hand side of the chart area is defined in Tools->Preferences->Charting<\/strong>:<\/p>

\"Blank<\/p>

It is also possible to extend the blank bars area manually. Pressing END<\/strong> key on the keyboard will add 10 extra bars with each keystroke. Pressing HOME<\/strong> will reset the blank bars area back to default value from Preferences.<\/p>

Number of bank bars can also be controlled using SetChartOptions() function from the code.<\/p>SetChartOptions<\/span>( <\/span>0<\/span>, <\/span>0<\/span>, <\/span>chartGridMiddle<\/span>, <\/span>0<\/span>, <\/span>0<\/span>, <\/span>100 <\/span>);
<\/span>Plot<\/span>( <\/span>Close<\/span>, <\/span>"Close"<\/span>, <\/span>colorDefault<\/span>, <\/span>styleBar <\/span>)<\/code>

Detailed documentation of SetChartOptions function is available in the manual:
http:\/\/www.amibroker.com\/f?SetChartOptions<\/a><\/p>","protected":false},"excerpt":{"rendered":"

The default number of bars shown in the right-hand side of the chart area is defined in Tools->Preferences->Charting:It is also possible to extend the blank bars area manually. Pressing END key on the keyboard will add 10 extra bars with each keystroke. Pressing HOME will reset the blank bars area back to default value from […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[55,24],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/688"}],"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=688"}],"version-history":[{"count":2,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/688\/revisions"}],"predecessor-version":[{"id":692,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/688\/revisions\/692"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}