Skip to main content
request.bars is Hyperprop Script’s equivalent of Pine’s request.security. Declare each series at the top level of your script. The chart loads it and re-runs compute when it arrives or updates.

Timeframes

'15s', '1m', '5m', '15m', '1h', '4h', '1D' and '1W'. Pine’s 'D', 'W', '60' and '240' work too. Lowercase m means minutes. Monthly bars are not supported.

The handle

Inside compute, the returned handle exposes: Return early while the series is loading:

No lookahead by default

A chart bar only sees requested bars that had closed by the chart bar’s own close, and h.bars contains closed bars only. On a 1-minute chart, every bar of today sees yesterday’s daily bar. Today’s daily values appear once the day closes. That’s what you would have known in real time, so historical values don’t repaint.

The developing bar

Pass developing: true to include the bar that is still forming:
  • h.bars ends with the bar in progress.
  • h.open, h.high, h.low, h.close and h.volume show that bar as it stood at each chart bar. For example, on a 1-minute chart, today.high is the day’s high so far at each minute, not the final high.
  • h.align() maps each chart bar to the bar in progress using that bar’s values as loaded. On history, that is the bar’s final value, like Pine’s lookahead_on. Use the OHLCV arrays when you need values that were known at the time.
In bar replay, a script never sees bars after the replay position.

Limits and availability

  • Up to 4 distinct series per script. Requesting the same series twice counts once.
  • The latest 5000 bars of each series.
  • Higher timeframes of the chart’s own symbol always work and update live.
  • Other symbols and lower timeframes depend on the chart having history for them. Check h.status. With { symbol }, the series updates as often as the chart refreshes that symbol’s history.

Example: daily ATR on a 1-minute chart

Plots yesterday’s high and low and shows yesterday’s 14-day ATR in a table:

Example: today’s open and high so far