A study computed on a longer timeframe than the chart's — a daily average drawn on an hourly chart — reading the last closed higher candle so it never looks ahead.
A study can be set to a timeframe of its own, longer than the chart's. The hourly chart then shows, say, the daily 20-period average as a step line that changes once a day.
The choice that matters
At 14:00 the day's candle has not closed. A higher-timeframe study can read the last closed daily candle (a flat staircase that never changes its past — Bentrix's default) or the forming one (which redraws its recent values as the day goes on, as some platforms show by default). The first is what a strategy could actually have known; the second repaintsRepaintAn indicator repaints when its past values change as new bars arrive — it looks perfect on history and behaves differently live..