Skip to content

Indicators

Calculate a registered indicator over the loaded data.

Generated from the pinned chart source (04d191a). Descriptions are the exact text the model receives.

indicators_list

List chart indicatorsRead-onlyChart coreSource

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

Edit chart indicatorsModifies the chartChart coreSource

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

NameTypeRequiredConstraintsDescription
actionenumYesone of "add", "update", "move", "remove"
indicatorstring—min length 1add only: exact indicator name or id, for example MACD.
inputsrecord——Input object declared by the indicator. add accepts a subset; update replaces the complete set.
placementenum—one of "main", "sub"add only: main overlays the price chart; sub gives the indicator its own pane.
targetobject—closed
target.indicatorstring—min length 1Indicator name or id from indicators_list, for example MACD.
target.rowinteger—≥ 0Chart 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.orderinteger—≥ 11-based position within the row. Omit when only one instance matches.
targetRowinteger—≥ 0move 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

Query indicator seriesRead-onlyChart coreSource

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

NameTypeRequiredConstraintsDescription
indicatorstringYesmin length 1Indicator name or id as returned by indicators_list.
rowinteger—≥ 0Display row; required when the name appears twice.
orderinteger—≥ 1Position inside the row; required to split ties.
inputsrecord——Complete or partial inputs keyed by input name. Omitted keys use the definition defaults.
fromstring——Window start, inclusive. "YYYY-MM-DD" for daily and above; RFC 3339 with offset for intraday.
tostring——Window end, inclusive. Same format as from.
limitinteger—≥ 1; ≤ 2000Maximum rows and objects to return. Defaults to 60.

Minimal input · Required fields only; placeholders are derived from the schema.

{
  "indicator": "<indicator>"
}
JSON Schema
…

On this page