chart_set_timeframe
Switch a TradingView chart's timeframe or resolution and wait for the new candle feed to resolve, enabling multi-timeframe analysis.
Instructions
Change the chart timeframe/resolution and reactively wait for candle feed resolution. WHEN TO USE: Call when switching resolutions for multi-timeframe analysis (e.g., switching from 1D to 15m). SIDE EFFECTS: STATE_MUTATING (Alters chart resolution, increments state generation, invalidates generational cache). LIMITATIONS: Supported formats include standard minutes ("1", "5", "15", "60", "240") and calendar periods ("D", "W", "M").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeframe | Yes | Timeframe (e.g., 1, 5, 15, 60, D, W, M) |