November 5, 2014
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 Preferences.
Number of bank bars can also be controlled using SetChartOptions() function from the code.
SetChartOptions( 0, 0, chartGridMiddle, 0, 0, 100 );
Plot( Close, "Close", colorDefault, styleBar );
Detailed documentation of SetChartOptions function is available in the manual: