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