Indicators
Calculate a registered indicator over the loaded data.
04d191a). Descriptions are the exact text the model receives.indicators_list
List every indicator on the chart. Each item exposes indicator (id), name (display name), inputs, placement (main or sub), row (0 is the top row; the main chart can be at any row) and order (1-based position within the row). Use that indicator/row/order combination as the target for indicators_write; never invent positions.
Parameters
This tool takes no input.
JSON Schema
…indicators_write
Add, update, move or remove chart indicators. add: indicator plus optional inputs and placement; omitted inputs take the defaults of that indicator. update: target plus inputs. inputs is the COMPLETE set and replaces the stored inputs; if you do not know the current values, call indicators_list first. move: target plus targetRow. remove: target. target is { indicator, row?, order? }: indicator is the id or name from indicators_list; row is the display row (0 is the top row, the main chart can be at any row); add row and order only when several instances share the name. Indicators cannot change type in place; remove and add when the indicator itself must change.
Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
action | enum | Yes | one of "add", "update", "move", "remove" | |
indicator | string | — | min length 1 | add only: exact indicator name or id, for example MACD. |
inputs | record | — | — | Input object declared by the indicator. add accepts a subset; update replaces the complete set. |
placement | enum | — | one of "main", "sub" | add only: main overlays the price chart; sub gives the indicator its own pane. |
target | object | — | closed | |
target.indicator | string | — | min length 1 | Indicator name or id from indicators_list, for example MACD. |
target.row | integer | — | ≥ 0 | Chart display row from indicators_list: 0 is the top row. The main chart can be at any row. Omit when only one instance matches. |
target.order | integer | — | ≥ 1 | 1-based position within the row. Omit when only one instance matches. |
targetRow | integer | — | ≥ 0 | move only: destination display row, where 0 is the top row. The main chart can be at any row. |
Minimal input · Required fields only; placeholders are derived from the schema.
{
"action": "add"
}JSON Schema
…indicator_series_query
Read the values an indicator produces on the current chart. Without inputs it reads the chart instance; with inputs it computes once with those inputs and leaves the chart unchanged. Returns series.columns and series.rows, where each row is [index, time, ...values] aligned to the column order. Also returns the drawings (line/box/label) and hlines the indicator produced. Narrow with from/to and limit; a truncated field reports how many items were cut.
Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
indicator | string | Yes | min length 1 | Indicator name or id as returned by indicators_list. |
row | integer | — | ≥ 0 | Display row; required when the name appears twice. |
order | integer | — | ≥ 1 | Position inside the row; required to split ties. |
inputs | record | — | — | Complete or partial inputs keyed by input name. Omitted keys use the definition defaults. |
from | string | — | — | Window start, inclusive. "YYYY-MM-DD" for daily and above; RFC 3339 with offset for intraday. |
to | string | — | — | Window end, inclusive. Same format as from. |
limit | integer | — | ≥ 1; ≤ 2000 | Maximum rows and objects to return. Defaults to 60. |
Minimal input · Required fields only; placeholders are derived from the schema.
{
"indicator": "<indicator>"
}JSON Schema
…