Dynamic fill space — keeps a constant percentage of empty space to the right of the last bar
Fill Space automatically adjusts the empty space to the right of the last bar on your Sierra Chart to maintain a constant percentage of the visible chart area. Sierra Chart's built-in fill space setting is a fixed number of bars — it doesn't adapt when you zoom in, zoom out, scroll, or resize your chart window. This study solves that by dynamically recalculating and updating the fill space value in real time.
The study calculates how many bars are currently visible on your chart and compares the current fill space to your target percentage. If the fill space doesn't match the target ratio, it adjusts the value automatically so that the empty area to the right of the last bar always represents the same proportion of your visible chart — whether you're looking at 50 bars or 500.
A single input controls the behavior:
That's it. Add the study to your chart, set your preferred percentage, and forget about it.
To prevent constant micro-adjustments as bars tick in, the study includes a built-in deadband of ±1 bar. The fill space value is only updated when the calculated target differs from the current value by more than 1 bar. This keeps the chart stable and avoids unnecessary redraws.