How to Increase Blank Bars in Right Margin?

Hi,
I am a Geometry Based Trader and often i trade with lot of trend lines.
So that sometimes i require to find the bar number which is beyond 50.
Settings allow us to fix max of 50.
Is there anyway to increase it further using any code in the price chart?

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

Right Margin

Thanks,
Gloria Filamino

1 Like

Press END key on the keyboard. It temporarily adds as many as you want.

3 Likes

So Swift.

Worked like charm

Thanks.

I’d like to ask a question about more or less the same topic. This has been adressed before I think but can’t find it again.

I am making some intraday forecasting code. Depending on the timeframe I use the number of bars to forecast changes. For instance in the 5min timeframe I want to set the number of blank bars to 169, using 15min timeframe I set the number of blank bars to 57.

using:

SetChartOptions( 0, chartShowDates, 0, 0, 0, barsperday );

what I notice is that the number of blank bars set when barsperday = 169, does not change back to 57 if I change the timeframe to 15min or to 1hour. The number of blank bars stays at 169. There was a reason for it, but I forgot. Anyone know?

Absolutely love learning something so simple!!!!