Timeframe is the time interval represented by a bar or candle on a standard time-based chart. Changing it regroups price data; zooming merely changes how those data are displayed.
Jana opens a bitcoin chart and switches from minute candles to daily candles. The market has not changed; the period summarized by each candle has. A small move that filled the screen may disappear within a daily range. TradingView also calls this interval the chart resolution. Zooming enlarges the view, whereas changing the interval groups data into different units. Neither determines how long Jana should hold bitcoin. [1]
For ordinary chart reading, understanding the unit next to the interval is enough. Working with data requires exact notation: in TradingView’s Pine Script, 15 means fifteen minutes, 60 means an hour and 1M means a month. There is no separate H unit for hours. Kraken’s REST API interface for OHLC instead accepts an interval in minutes from a permitted list. A setting from one platform cannot simply be transferred to another without checking its meaning. [1] [5]
A daily candle needs a defined start and end. When comparing charts, Jana should check these boundaries and the data source as well as the market. In TradingView, the chart time zone controls the display, while Pine Script uses time values and its own calculation rules. Switching the displayed clock to local time does not itself change a script’s calculations. Different time labels therefore do not prove that candles were assembled differently. [2]
On a market with fixed trading hours, the end of a session—the period when trading is open—can shorten the final candle. TradingView aligns time-based candles with session boundaries. It is therefore unsafe to assume that every bar on every chart spans its full nominal duration. Other chart types form bars from a number of price updates or a price movement rather than elapsed time; their time spacing is irregular. [2]
Jana watches a daily candle halfway through the day. Its high (High), low (Low) and latest price can still change. TradingView calls the latest-price field Close, but on an open candle this is not the final daily price. The same caution applies when an indicator on a short-interval chart uses a longer interval. Distinguish a developing value from one confirmed at the close, or a signal may look different later. [3]
A backtest checks rules against historical data. Each decision must use only information available at that time: the final daily price was not known in the morning. TradingView warns that requesting a longer interval with lookahead_on and no appropriate expression offset can assign future values to past bars. The result looks persuasive but cannot be reproduced in real time. Checking when information became available matters more than an attractive performance curve. [4]
A program can request shorter bars within a longer candle. For such requests, Pine Script’s request.security returns only one inner bar per chart bar. request.security_lower_tf can return an array of available inner bars. That difference determines whether a calculation uses a sample or an available sequence. Even an array does not promise a complete history: data may be missing, and providers can revise records later. [4]
Jana therefore records the market, interval, source and whether the candles are closed. For an indicator calculated over a number of candles, she also records that number: changing the interval changes the time it covers. Multiplying bar count by duration works directly only for consecutive, complete intervals without gaps. Timeframe helps define which part of history we are examining; it does not supply the answer about future prices. [1] [2]
Twenty candles, two spans of history
In a hypothetical chart, Jana selects 20 complete, equal-length, consecutive candles without gaps. At 15 minutes each, they cover 20 × 15 = 300 min. After switching to 60 minutes, the same 20 candles represent 20 × 60 = 1200 min. This is the duration covered by the full intervals, not the distance between the first and last closing timestamps. The calculation does not apply unchanged to shortened or missing candles and promises no better trading result. The latest candle remains provisional until it closes.
For the clearest picture, read this entry together with OHLCV, Candlestick chart, Technical analysis, Backtesting, Moving average, Price action. The reverse links also lead from OHLCV, Candlestick chart, Price action, Technical indicator.
01Does changing the time zone change daily candles?+
Not automatically. TradingView’s chart time zone is a display setting and does not change Pine Script’s time calculations. When comparing sources, check their actual interval boundaries; a different clock label alone does not establish different aggregation.
02Can I use a daily chart alongside a shorter interval?+
Yes. A longer interval can provide context and a shorter one detail. But the market behind the data and the values known at the decision time must be clear. A day’s final result cannot be used before that day closes.