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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resolution": "<resolution>"
},
"name": "set_timeframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resolution | Yes | Timeframe/resolution string | |
| chart_index | No | Chart index in a multi-chart layout. Default: active chart |