Bentrix Docs
HomePricingDashboard

MCP tools: studies on a chart

Studies on a chart: attached and removed, their inputs, style, visibility, bands and slope set, their values read, their build stopped or run again; a custom study defined and its series pushed from the agent's own computation.

Reached from a connected client as client.study in Python, client.study in JavaScript, client.study() in Rust — each tool below shows its call in every language.

study_attach#

Attach an indicator

labplan: plussince 1.0.0

Attaches an indicator to a chart with its defaults — the person's saved default for the kind when there is one — as the indicator menu does; a custom study (custom:<id>) with its spec's defaults, or the inputs given. On, timeframe and wait_close set what it is computed on, as the settings card's Inputs tab does, for a built-in and a custom study alike; a timeframe the chart cannot read is refused by name. Answers the chart, the new study's id among its studies.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—The chart's uri.
conventionstring——The calculation, where the kind has two: talib or mt5.
inputsobject——A custom study's inputs by name, each within its spec's bounds; the rest take their defaults.
kindstringyes—The indicator, as a chart's setup names it (setup.studies[].kind), e.g. Sma, ema, rsi, macd, bollinger, atr; a custom study as custom:<id> (catalogue/indicators lists them).
onstring——On a chart built by price or activity, what it is computed on: elements (the default) or candles, the time candles behind them.
timeframestring——A timeframe of its own, as an interval is written (M5, H1, D1, …): the chart's or a longer one. Omitted, the chart's.
wait_closeboolean——With a timeframe of its own: true (the default) reads the last closed candle of it; false the one forming.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_attach",
    "arguments": {
      "chart": "…",
      "kind": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def attach(self, chart: str, kind: str, *, convention: Optional[str] = None, inputs: Optional[Dict[str, Any]] = None, on: Optional[str] = None, timeframe: Optional[str] = None, wait_close: Optional[bool] = None) -> Dict[str, Any]

JavaScript

client.study
attach(args)

C#

client.Study
public Task<JsonNode?> Attach(string chart, string kind, string? convention = null, object? inputs = null, string? on = null, string? timeframe = null, bool? waitClose = null, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) Attach(ctx context.Context, args StudyAttachArgs) (any, error)

Java

client.study
public Object attach(AttachArgs args)

C++

client.study
Json attach(const AttachArgs &args)

Julia

client.study
attach = (chart, kind; convention = nothing, inputs = nothing, on = nothing, timeframe = nothing, wait_close = nothing)

R

client$study
`attach` = function(chart, kind, convention = NULL, inputs = NULL, on = NULL, timeframe = NULL, wait_close = NULL)

Rust

client.study()
pub fn attach(&self, args: StudyAttachArgs) -> Result<Value, Error>

study_build#

Stop or compute again an Assay study's build

labplan: freesince 1.11.0

Stops an Assay script study's build between two bars, as the square on its legend row does, or computes a stopped one again from its first bar, as the triangle does. A study that is not building, or not stopped, is refused by name. Answers the study's state: computing, stopped or ready.

ArgumentTypeRequiredDefaultWhat it is
action"stop" | "again"yes—stop ends an Assay study's build between two bars; again computes a stopped one again from its first bar.
chartstringyes—
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_build",
    "arguments": {
      "action": "stop",
      "chart": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def build(self, chart: str, study: int, action: Literal["stop", "again"]) -> Dict[str, Any]

JavaScript

client.study
build(args)

C#

client.Study
public Task<JsonNode?> Build(string chart, long study, string action, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) Build(ctx context.Context, args StudyBuildArgs) (any, error)

Java

client.study
public Object build(BuildArgs args)

C++

client.study
Json build(const BuildArgs &args)

Julia

client.study
build = (chart, study, action)

R

client$study
`build` = function(chart, study, action)

Rust

client.study()
pub fn build(&self, args: StudyBuildArgs) -> Result<Value, Error>

study_define#

Define a custom study

labplan: plussince 1.2.0idempotent

Declares a custom study from a custom_study_spec, refused by name where the spec breaks a rule. An equal spec answers the same version; a different spec under the same id moves its version and every study of it on a chart is read again. Answers the kind to attach (custom:<id>) and the version.

ArgumentTypeRequiredDefaultWhat it is
specanyyes—The spec, as custom_study_spec describes it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_define",
    "arguments": {
      "spec": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def define(self, spec: Any) -> Dict[str, Any]

JavaScript

client.study
define(args)

C#

client.Study
public Task<JsonNode?> Define(object spec, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) Define(ctx context.Context, args StudyDefineArgs) (any, error)

Java

client.study
public Object define(DefineArgs args)

C++

client.study
Json define(const DefineArgs &args)

Julia

client.study
define = (spec)

R

client$study
`define` = function(spec)

Rust

client.study()
pub fn define(&self, args: StudyDefineArgs) -> Result<Value, Error>

study_remove#

Remove an indicator

labplan: plussince 1.0.0destructive

Takes a study off its chart, and with it every study computed on its lines, as the legend's x does once its question is answered. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
studyintegeryes—The study's id, as the chart's answer gives it (setup.studies[].id).

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_remove",
    "arguments": {
      "chart": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def remove(self, chart: str, study: int) -> Dict[str, Any]

JavaScript

client.study
remove(args)

C#

client.Study
public Task<JsonNode?> Remove(string chart, long study, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) Remove(ctx context.Context, args StudyRemoveArgs) (any, error)

Java

client.study
public Object remove(RemoveArgs args)

C++

client.study
Json remove(const RemoveArgs &args)

Julia

client.study
remove = (chart, study)

R

client$study
`remove` = function(chart, study)

Rust

client.study()
pub fn remove(&self, args: StudyRemoveArgs) -> Result<Value, Error>

study_reset#

Reset an indicator

labplan: plussince 1.0.0

Puts a study back to the person's saved default for its kind, or to the kind's own when none is saved, as the settings card's Reset does. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
studyintegeryes—The study's id, as the chart's answer gives it (setup.studies[].id).

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_reset",
    "arguments": {
      "chart": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def reset(self, chart: str, study: int) -> Dict[str, Any]

JavaScript

client.study
reset(args)

C#

client.Study
public Task<JsonNode?> Reset(string chart, long study, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) Reset(ctx context.Context, args StudyResetArgs) (any, error)

Java

client.study
public Object reset(ResetArgs args)

C++

client.study
Json reset(const ResetArgs &args)

Julia

client.study
reset = (chart, study)

R

client$study
`reset` = function(chart, study)

Rust

client.study()
pub fn reset(&self, args: StudyResetArgs) -> Result<Value, Error>

study_save_default#

Save an indicator as its kind's default

labplan: plussince 1.0.0

Saves a study's settings and looks as the default every new study of its kind opens with, or forgets that default, as the settings card's Defaults menu does. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
forgetboolean—falseTrue forgets the kind's saved default instead, and puts this study back to the kind's own.
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_save_default",
    "arguments": {
      "chart": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def save_default(self, chart: str, study: int, *, forget: Optional[bool] = None) -> Dict[str, Any]

JavaScript

client.study
saveDefault(args)

C#

client.Study
public Task<JsonNode?> SaveDefault(string chart, long study, bool? forget = null, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SaveDefault(ctx context.Context, args StudySaveDefaultArgs) (any, error)

Java

client.study
public Object saveDefault(SaveDefaultArgs args)

C++

client.study
Json save_default(const SaveDefaultArgs &args)

Julia

client.study
save_default = (chart, study; forget = nothing)

R

client$study
`save_default` = function(chart, study, forget = NULL)

Rust

client.study()
pub fn save_default(&self, args: StudySaveDefaultArgs) -> Result<Value, Error>

study_series_clear#

Drop a custom study's values

labplan: plussince 1.2.0destructive

Drops the values handed over for a custom study on a chart; the study stays, waiting for its script. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_series_clear",
    "arguments": {
      "chart": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def series_clear(self, chart: str, study: int) -> Dict[str, Any]

JavaScript

client.study
seriesClear(args)

C#

client.Study
public Task<JsonNode?> SeriesClear(string chart, long study, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SeriesClear(ctx context.Context, args StudySeriesClearArgs) (any, error)

Java

client.study
public Object seriesClear(SeriesClearArgs args)

C++

client.study
Json series_clear(const SeriesClearArgs &args)

Julia

client.study
series_clear = (chart, study)

R

client$study
`series_clear` = function(chart, study)

Rust

client.study()
pub fn series_clear(&self, args: StudySeriesClearArgs) -> Result<Value, Error>

study_series_get#

Read what a custom study draws

readplan: freesince 1.2.0reads only

Reads what a chart draws now for a custom study — the values it holds, whoever computed them, at the bars it is drawn on as the chart last drew them — each line by its declared name with the newest limit values beside their bars' times; on a chart's elements (on: elements) each time is the element's candle open, beside its ordinal. A study on a timeframe of its own answers its values read back onto those bars. Nothing past the cursor. Answers waiting when nothing has landed.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
limitinteger——The newest values kept per line (at most 5000).
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_series_get",
    "arguments": {
      "chart": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def series_get(self, chart: str, study: int, *, limit: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.study
seriesGet(args)

C#

client.Study
public Task<JsonNode?> SeriesGet(string chart, long study, long? limit = null, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SeriesGet(ctx context.Context, args StudySeriesGetArgs) (any, error)

Java

client.study
public Object seriesGet(SeriesGetArgs args)

C++

client.study
Json series_get(const SeriesGetArgs &args)

Julia

client.study
series_get = (chart, study; limit = nothing)

R

client$study
`series_get` = function(chart, study, limit = NULL)

Rust

client.study()
pub fn series_get(&self, args: StudySeriesGetArgs) -> Result<Value, Error>

study_series_put#

Hand over a custom study's values

labplan: plussince 1.2.0

Hands over a custom study's values, each at one of the bars it is computed on: the chart's bar opens; on a chart built by price, its elements (each by its candle's open and its ordinal, chart_elements_get) or, set to the candles, the candles' opens; with a timeframe of its own, that timeframe's bar opens, read back onto the chart under its wait_close. A time past the workbench's cursor, or one that is not such a bar, is refused by name; at most 5000 values a call. A put under another epoch replaces the series, and a study set to compute on other bars drops it; the values are drawn on the chart and never saved. Answers how many were accepted, the newest time held, and how many a move of the clock back had cut since the last put.

ArgumentTypeRequiredDefaultWhat it is
appendboolean—falseTrue writes the newest value and after: the newest held is overwritten or followed.
chartstringyes—The chart's uri.
epochintegeryes—The program's own epoch: a put under another one replaces the whole series.
linesobjectyes—Every declared line by its name, one value per time; null is a gap.
ordinalsarray of integer——On a chart's elements only: each element's ordinal among the elements of its candle, one per time (chart_elements_get); omitted, every one 0.
studyintegeryes—The custom study's id on the chart.
timesarray of integeryes—UTC milliseconds, oldest first, at most 5000: bar opens of what the study is computed on — the chart's interval, or on a chart built by price the candles behind it, or the study's own timeframe when it has one; on a chart's elements each element's candle open (chart_elements_get).

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_series_put",
    "arguments": {
      "chart": "…",
      "epoch": 1,
      "lines": {},
      "study": 1,
      "times": []
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def series_put(self, chart: str, study: int, epoch: int, times: List[int], lines: Dict[str, Any], *, append: Optional[bool] = None, ordinals: Optional[List[int]] = None) -> Dict[str, Any]

JavaScript

client.study
seriesPut(args)

C#

client.Study
public Task<JsonNode?> SeriesPut(string chart, long study, long epoch, IReadOnlyList<long> times, object lines, bool? append = null, IReadOnlyList<long>? ordinals = null, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SeriesPut(ctx context.Context, args StudySeriesPutArgs) (any, error)

Java

client.study
public Object seriesPut(SeriesPutArgs args)

C++

client.study
Json series_put(const SeriesPutArgs &args)

Julia

client.study
series_put = (chart, study, epoch, times, lines; append = nothing, ordinals = nothing)

R

client$study
`series_put` = function(chart, study, epoch, times, lines, append = NULL, ordinals = NULL)

Rust

client.study()
pub fn series_put(&self, args: StudySeriesPutArgs) -> Result<Value, Error>

study_set_bands#

Set an indicator's bands

labplan: plussince 1.0.0

Sets the deviation bands around a single-line study and their looks, as the Bands tab does; bands null turns them off. Patch fields: bands, band_looks. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
patchanyyes—Fields of the study's entry (setup.studies[] in the chart's answer) laid over it; only this tab's fields.
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_set_bands",
    "arguments": {
      "chart": "…",
      "patch": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def set_bands(self, chart: str, study: int, patch: Any) -> Dict[str, Any]

JavaScript

client.study
setBands(args)

C#

client.Study
public Task<JsonNode?> SetBands(string chart, long study, object patch, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SetBands(ctx context.Context, args StudySetBandsArgs) (any, error)

Java

client.study
public Object setBands(SetBandsArgs args)

C++

client.study
Json set_bands(const SetBandsArgs &args)

Julia

client.study
set_bands = (chart, study, patch)

R

client$study
`set_bands` = function(chart, study, patch)

Rust

client.study()
pub fn set_bands(&self, args: StudySetBandsArgs) -> Result<Value, Error>

study_set_inputs#

Set an indicator's inputs

labplan: plussince 1.0.0

Sets what a study computes — its calculation, prices, settings (a custom study's inputs by name), timeframe, whether it waits for the higher candle to close, on a chart built by price whether it is computed on the elements or the candles (on: "elements" or "candles"), and a function of two series' second series (second: {"from": "price", "price": "open"}, {"from": "volume"}, {"from": "market", "symbol": "EURUSD", "price": "close"}, {"from": "study", "of": place, "line": 0} or {"from": "fixed", "value": 14}) — as the settings card's Inputs tab does, for a built-in and a custom study alike. Patch fields: convention, applied, applied_also, settings, timeframe, wait_close, on, second. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
patchanyyes—Fields of the study's entry (setup.studies[] in the chart's answer) laid over it; only this tab's fields.
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_set_inputs",
    "arguments": {
      "chart": "…",
      "patch": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def set_inputs(self, chart: str, study: int, patch: Any) -> Dict[str, Any]

JavaScript

client.study
setInputs(args)

C#

client.Study
public Task<JsonNode?> SetInputs(string chart, long study, object patch, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SetInputs(ctx context.Context, args StudySetInputsArgs) (any, error)

Java

client.study
public Object setInputs(SetInputsArgs args)

C++

client.study
Json set_inputs(const SetInputsArgs &args)

Julia

client.study
set_inputs = (chart, study, patch)

R

client$study
`set_inputs` = function(chart, study, patch)

Rust

client.study()
pub fn set_inputs(&self, args: StudySetInputsArgs) -> Result<Value, Error>

study_set_slope#

Set an indicator's slope colouring

labplan: plussince 1.0.0

Sets how a single-line study is coloured by its slope and the colours of its five states, as the Slope tab does; slope null turns it off. Patch fields: slope, slope_look. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
patchanyyes—Fields of the study's entry (setup.studies[] in the chart's answer) laid over it; only this tab's fields.
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_set_slope",
    "arguments": {
      "chart": "…",
      "patch": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def set_slope(self, chart: str, study: int, patch: Any) -> Dict[str, Any]

JavaScript

client.study
setSlope(args)

C#

client.Study
public Task<JsonNode?> SetSlope(string chart, long study, object patch, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SetSlope(ctx context.Context, args StudySetSlopeArgs) (any, error)

Java

client.study
public Object setSlope(SetSlopeArgs args)

C++

client.study
Json set_slope(const SetSlopeArgs &args)

Julia

client.study
set_slope = (chart, study, patch)

R

client$study
`set_slope` = function(chart, study, patch)

Rust

client.study()
pub fn set_slope(&self, args: StudySetSlopeArgs) -> Result<Value, Error>

study_set_style#

Set an indicator's lines' looks

labplan: plussince 1.0.0

Sets each line's colour, width, dash, kind and price line, the study's output and what it is computed on over an element chart, as the Style tab does. Patch fields: looks, output, on. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
patchanyyes—Fields of the study's entry (setup.studies[] in the chart's answer) laid over it; only this tab's fields.
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_set_style",
    "arguments": {
      "chart": "…",
      "patch": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def set_style(self, chart: str, study: int, patch: Any) -> Dict[str, Any]

JavaScript

client.study
setStyle(args)

C#

client.Study
public Task<JsonNode?> SetStyle(string chart, long study, object patch, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SetStyle(ctx context.Context, args StudySetStyleArgs) (any, error)

Java

client.study
public Object setStyle(SetStyleArgs args)

C++

client.study
Json set_style(const SetStyleArgs &args)

Julia

client.study
set_style = (chart, study, patch)

R

client$study
`set_style` = function(chart, study, patch)

Rust

client.study()
pub fn set_style(&self, args: StudySetStyleArgs) -> Result<Value, Error>

study_set_visibility#

Set on which intervals an indicator is drawn

labplan: plussince 1.0.0

Sets on which intervals a study is drawn, as the Visibility tab does. Patch field: visibility. Answers the chart.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—
patchanyyes—Fields of the study's entry (setup.studies[] in the chart's answer) laid over it; only this tab's fields.
studyintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_set_visibility",
    "arguments": {
      "chart": "…",
      "patch": "…",
      "study": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def set_visibility(self, chart: str, study: int, patch: Any) -> Dict[str, Any]

JavaScript

client.study
setVisibility(args)

C#

client.Study
public Task<JsonNode?> SetVisibility(string chart, long study, object patch, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) SetVisibility(ctx context.Context, args StudySetVisibilityArgs) (any, error)

Java

client.study
public Object setVisibility(SetVisibilityArgs args)

C++

client.study
Json set_visibility(const SetVisibilityArgs &args)

Julia

client.study
set_visibility = (chart, study, patch)

R

client$study
`set_visibility` = function(chart, study, patch)

Rust

client.study()
pub fn set_visibility(&self, args: StudySetVisibilityArgs) -> Result<Value, Error>

study_undefine#

Forget a custom study's definition

labplan: plussince 1.2.0destructive

Forgets a custom study a program defined. Refused while any chart holds a study of it, and for a script's: a script's study is the person's file. Answers the kind.

ArgumentTypeRequiredDefaultWhat it is
kindstringyes—The custom kind, custom:<id>.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_undefine",
    "arguments": {
      "kind": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def undefine(self, kind: str) -> Dict[str, Any]

JavaScript

client.study
undefine(args)

C#

client.Study
public Task<JsonNode?> Undefine(string kind, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) Undefine(ctx context.Context, args StudyUndefineArgs) (any, error)

Java

client.study
public Object undefine(UndefineArgs args)

C++

client.study
Json undefine(const UndefineArgs &args)

Julia

client.study
undefine = (kind)

R

client$study
`undefine` = function(kind)

Rust

client.study()
pub fn undefine(&self, args: StudyUndefineArgs) -> Result<Value, Error>

study_values#

Compute a study

readplan: freesince 1.0.0reads only

Computes a study over a laboratory workbench's bars as its chart reads them at the cursor — never a bar past the clock — and answers each line by what it is, with the newest values beside their candles' times. An Assay indicator of the indicators folder is computed too, with no chart: study as custom:<id>, its inputs given or its defaults, each line by its declared name.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The laboratory workbench's uri.
inputsobject——An Assay indicator's inputs by name; those not given take its spec's defaults.
limitinteger—500The newest values kept per line (at most 5000).
studyanyyes—The study as a chart's setup files it (setup.studies[] in a chart's answer, without id), or "custom:<id>" for an Assay indicator of the indicators folder.
symbolstringyes—
timeframestringyes—The interval, as the menu writes it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "study_values",
    "arguments": {
      "bench": "…",
      "study": "…",
      "symbol": "…",
      "timeframe": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.study
def values(self, bench: str, symbol: str, timeframe: str, study: Any, *, inputs: Optional[Dict[str, Any]] = None, limit: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.study
values(args)

C#

client.Study
public Task<JsonNode?> Values(string bench, string symbol, string timeframe, object study, object? inputs = null, long? limit = null, CancellationToken ct = default)

Go

client.Study
func (a *StudyAPI) Values(ctx context.Context, args StudyValuesArgs) (any, error)

Java

client.study
public Object values(ValuesArgs args)

C++

client.study
Json values_(const ValuesArgs &args)

Julia

client.study
values = (bench, symbol, timeframe, study; inputs = nothing, limit = nothing)

R

client$study
`values` = function(bench, symbol, timeframe, study, inputs = NULL, limit = NULL)

Rust

client.study()
pub fn values(&self, args: StudyValuesArgs) -> Result<Value, Error>

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed