Incorporate a rolling period!
Unless configured otherwise, the script will not "restart" on a new HTF bar, thereby eliminating the "scrunched chart" effect.
For instance,
By default, selecting the 30-minute chart will prompt the script to show a rolling 30-minute period. This feature can be disabled to show data for the current bar only.
A rolling period is usable for any timeframe; additionally, timeframes less than 30 minutes will show 30 bars back - the resulting data being more usable and easy to digest!