set_timeframe
Adjust a TradingView chart's timeframe by setting a resolution (e.g., 5, 60, 240, 1D, 1W, 1M). In multi-chart layouts, target a pane; changes are verified and rolled back on failure.
Instructions
Change one TradingView chart's timeframe. Examples: '1', '5', '15', '60', '240' (minutes), '1D', '1W', '1M'. chart_index selects a pane in multi-chart layouts; the target pane is read back and failures are rolled back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resolution | Yes | Timeframe/resolution string | |
| chart_index | No | Chart index in a multi-chart layout. Default: active chart |