A model's forecast on the chart: put (whole, in chunks, or several at one instant), read back by arrival, cleared; the journal's report, a comparison of models and the diff of two forecasts; an evaluation over history at machine speed, its state and the person's answer on its sheet; ensembles and presets. A forecast is the model's word — nothing here judges whether it is right.
Reached from a connected client as client.forecast in Python, client.forecast in JavaScript, client.forecast() in Rust — each tool below shows its call in every language.
chart_set_forecast#
Set how a chart draws forecasts
Sets how a chart draws a model's forecast: show, the ghost's opacity, uncertainty (fan, band, paths, off), the bands' opacity, the room on the right (forecast, shift_only, or N slots), how long a realized forecast stays (until_replaced, off, {horizons}, {bars}), a coarser interval spanned or by time, a finer one folded or by time, an element forecast on a time chart (auto, strip, by_expected_time, panel), a time forecast and another rule on a chart built by price (derived, strip, both), a profile (forecast_session, strip, off), true equivolume's widths (by_volume, median), the time past the newest bar (clock_time, session_time), the sampled paths drawn, and the models hidden on it (the legend's eye); models_per_market applies to every workbench. A field not named keeps its value. Answers the chart's forecast settings.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
arrival_marks | boolean | — | — | A tick on the time axis at each forecast's arrival. |
band_opacity | number | — | — | The bands' opacity, 0.05 to 0.6. |
chart | string | yes | — | The chart's uri. |
coarser | string | — | — | A coarser interval: "spanned" or "by_time". |
diff | any | — | — | **The diff view**{"a": model, "b": model} shades the gap between their closes step by step; "off" takes it away. |
element_on_time | string | — | — | An element forecast (renko, kagi, …) on a time chart: "auto" (by expected time where every step says when it closes, else the strip), "strip", "by_expected_time" or "panel". |
equivolume_width | string | — | — | A step's width on true equivolume: "by_volume" (its own volume, else the window's median) or "median". |
finer | string | — | — | A finer interval: "folded" or "by_time". |
hidden | array of string | — | — | Models hidden on this chart, as the legend's eye hides them: the whole set. |
journal | string | — | — | The journal, for every workbench: laboratory_and_paper (the default), also_real, or off. |
keep_after_realized | any | — | — | Keep after realized: "until_replaced", "off", {"horizons": n} or {"bars": n}. |
models_per_market | integer | — | — | Models per market, for every workbench: 1 to 64. |
on_profile | string | — | — | On a profile: "forecast_session" (letters over the rows one session after the last), "strip" or "off". |
opacity | number | — | — | The ghost's opacity, 0.2 to 1. |
other_rule | string | — | — | An element forecast of another type or rule on a chart built by price: "derived", "strip" or "both". |
past_newest | string | — | — | Past the newest bar: "clock_time", or "session_time" (only the hours the market prints bars in). |
read_at_anchor | any | — | — | Read a forecast at its anchor, for every workbench: {"laboratory": bool, "paper_and_real": bool}; both off by default. A look-ahead: marked wherever it reads; on a live bench never the newest close. |
readout | boolean | — | — | A step's figures beside the pointer and in the data window. |
room | any | — | — | Room on the right: "forecast" (as wide as the widest forecast), "shift_only", or a number of slots. |
samples_drawn | integer | — | — | Sampled paths drawn per step, 1 to 256. |
show | boolean | — | — | Draw forecasts on this chart. |
time_on_elements | string | — | — | A time forecast on a chart built by price: "derived" (through the chart's own rule), "strip" or "both". |
trail | integer | — | — | The trail: the forecasts each model put before the one standing, drawn faint - 0 (off) to 64. |
uncertainty | string | — | — | Fan, band, paths or off. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "chart_set_forecast",
"arguments": {
"chart": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def chart_set_forecast(self, chart: str, *, arrival_marks: Optional[bool] = None, band_opacity: Optional[float] = None, coarser: Optional[str] = None, diff: Optional[Any] = None, element_on_time: Optional[str] = None, equivolume_width: Optional[str] = None, finer: Optional[str] = None, hidden: Optional[List[str]] = None, journal: Optional[str] = None, keep_after_realized: Optional[Any] = None, models_per_market: Optional[int] = None, on_profile: Optional[str] = None, opacity: Optional[float] = None, other_rule: Optional[str] = None, past_newest: Optional[str] = None, read_at_anchor: Optional[Any] = None, readout: Optional[bool] = None, room: Optional[Any] = None, samples_drawn: Optional[int] = None, show: Optional[bool] = None, time_on_elements: Optional[str] = None, trail: Optional[int] = None, uncertainty: Optional[str] = None) -> Dict[str, Any]JavaScript
client.forecast
chartSetForecast(args)C#
client.Forecast
public Task<JsonNode?> ChartSetForecast(string chart, bool? arrivalMarks = null, double? bandOpacity = null, string? coarser = null, object? diff = null, string? elementOnTime = null, string? equivolumeWidth = null, string? finer = null, IReadOnlyList<string>? hidden = null, string? journal = null, object? keepAfterRealized = null, long? modelsPerMarket = null, string? onProfile = null, double? opacity = null, string? otherRule = null, string? pastNewest = null, object? readAtAnchor = null, bool? readout = null, object? room = null, long? samplesDrawn = null, bool? show = null, string? timeOnElements = null, long? trail = null, string? uncertainty = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) ChartSetForecast(ctx context.Context, args ForecastChartSetForecastArgs) (any, error)Java
client.forecast
public Object chartSetForecast(ChartSetForecastArgs args)C++
client.forecast
Json chart_set_forecast(const ChartSetForecastArgs &args)Julia
client.forecast
chart_set_forecast = (chart; arrival_marks = nothing, band_opacity = nothing, coarser = nothing, diff = nothing, element_on_time = nothing, equivolume_width = nothing, finer = nothing, hidden = nothing, journal = nothing, keep_after_realized = nothing, models_per_market = nothing, on_profile = nothing, opacity = nothing, other_rule = nothing, past_newest = nothing, read_at_anchor = nothing, readout = nothing, room = nothing, samples_drawn = nothing, show = nothing, time_on_elements = nothing, trail = nothing, uncertainty = nothing)R
client$forecast
`chart_set_forecast` = function(chart, arrival_marks = NULL, band_opacity = NULL, coarser = NULL, diff = NULL, element_on_time = NULL, equivolume_width = NULL, finer = NULL, hidden = NULL, journal = NULL, keep_after_realized = NULL, models_per_market = NULL, on_profile = NULL, opacity = NULL, other_rule = NULL, past_newest = NULL, read_at_anchor = NULL, readout = NULL, room = NULL, samples_drawn = NULL, show = NULL, time_on_elements = NULL, trail = NULL, uncertainty = NULL)Rust
client.forecast()
pub fn chart_set_forecast(&self, args: ForecastChartSetForecastArgs) -> Result<Value, Error>forecast_clear#
Remove forecasts from a workbench
Removes the forecasts of one model, one market, or all of them from the workbench, every arrival kept for them included, as the × on a forecast's legend row does. Answers how many (market, model) pairs were cleared.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | The workbench's uri. |
model | string | — | — | One model; omitted, every model. |
symbol | string | — | — | One market; omitted, every market. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_clear",
"arguments": {
"bench": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def clear(self, bench: str, *, model: Optional[str] = None, symbol: Optional[str] = None) -> Dict[str, Any]JavaScript
client.forecast
clear(args)C#
client.Forecast
public Task<JsonNode?> Clear(string bench, string? model = null, string? symbol = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) Clear(ctx context.Context, args ForecastClearArgs) (any, error)Java
client.forecast
public Object clear(ClearArgs args)C++
client.forecast
Json clear(const ClearArgs &args)Julia
client.forecast
clear = (bench; model = nothing, symbol = nothing)R
client$forecast
`clear` = function(bench, model = NULL, symbol = NULL)Rust
client.forecast()
pub fn clear(&self, args: ForecastClearArgs) -> Result<Value, Error>forecast_compare#
Set models' reports side by side
Forecast_report for several models on one market, a row each, over the same journal and the same bars. Unordered (by name) unless metric_order names a measure, then best first. A comparison is a laboratory's instrument: nothing here is published or ranked anywhere else.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | |
last | integer | — | — | |
metric_order | string | — | — | Order the rows by this measure, best first (mae_close, rmse_close, mape_close, pinball_loss, crps ascending; direction_hit_rate descending). Omitted, by the model's name: no ranking is drawn unless asked. |
models | array of string | — | — | The models; omitted, every model the journal holds on the market. |
symbol | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_compare",
"arguments": {
"bench": "…",
"symbol": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def compare(self, bench: str, symbol: str, *, last: Optional[int] = None, metric_order: Optional[str] = None, models: Optional[List[str]] = None) -> Dict[str, Any]JavaScript
client.forecast
compare(args)C#
client.Forecast
public Task<JsonNode?> Compare(string bench, string symbol, long? last = null, string? metricOrder = null, IReadOnlyList<string>? models = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) Compare(ctx context.Context, args ForecastCompareArgs) (any, error)Java
client.forecast
public Object compare(CompareArgs args)C++
client.forecast
Json compare(const CompareArgs &args)Julia
client.forecast
compare = (bench, symbol; last = nothing, metric_order = nothing, models = nothing)R
client$forecast
`compare` = function(bench, symbol, last = NULL, metric_order = NULL, models = NULL)Rust
client.forecast()
pub fn compare(&self, args: ForecastCompareArgs) -> Result<Value, Error>forecast_diff#
Set two models' forecasts step by step
The two models' forecasts a reader at the workbench's clock sees on one market, step by step where their steps open at the same instant: each one's close and the difference (b minus a), and where their outermost bands overlap.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
a | string | yes | — | |
b | string | yes | — | |
bench | string | yes | — | |
symbol | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_diff",
"arguments": {
"a": "…",
"b": "…",
"bench": "…",
"symbol": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def diff(self, bench: str, symbol: str, a: str, b: str) -> Dict[str, Any]JavaScript
client.forecast
diff(args)C#
client.Forecast
public Task<JsonNode?> Diff(string bench, string symbol, string a, string b, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) Diff(ctx context.Context, args ForecastDiffArgs) (any, error)Java
client.forecast
public Object diff(DiffArgs args)C++
client.forecast
Json diff(const DiffArgs &args)Julia
client.forecast
diff = (bench, symbol, a, b)R
client$forecast
`diff` = function(bench, symbol, a, b)Rust
client.forecast()
pub fn diff(&self, args: ForecastDiffArgs) -> Result<Value, Error>forecast_ensemble_define#
Declare an ensemble of forecasts
Declares an ensemble on a workbench's market: its label, its members (models' labels), the rule its closes are combined by (mean, median, weighted with one weight a member) and the NAMED rule its bands are combined by - quantiles_averaged (each level's lo and hi averaged; the band claims no coverage of its own), members_pooled (the mixture of the members' samples, quantiles or band edges, its quantiles at each level; partly pooled where a member gave only a band), or none. Bentrix computes only what is declared: whenever a member's newest forecast arrives and every member stands at one anchor, the ensemble's forecast is put, authored ensemble:<id>, so its arrival is the latest of its members'; a member cleared takes it off with a sentence. Declaring an id again replaces it. Answers the ensemble.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bands | "quantiles_averaged" | "members_pooled" | "none" | — | — | Quantiles_averaged (each level's edges averaged; the band claims no p), members_pooled (the mixture's quantiles) or none. Omitted: quantiles_averaged. |
bench | string | yes | — | |
id | string | yes | — | The ensemble's label, as a model's: [a-z0-9_]{1,32}, none of its members. |
members | array of string | yes | — | The members' model labels, at least two. |
rule | "mean" | "median" or string | yes | — | Mean, median or weighted. |
symbol | string | yes | — | |
weights | array of number | — | — | For weighted: one weight a member, in the members' order. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_ensemble_define",
"arguments": {
"bench": "…",
"id": "…",
"members": [],
"rule": "mean",
"symbol": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def ensemble_define(self, bench: str, symbol: str, id: str, members: List[str], rule: Literal["mean", "median", "weighted"], *, bands: Optional[Literal["quantiles_averaged", "members_pooled", "none"]] = None, weights: Optional[List[float]] = None) -> Dict[str, Any]JavaScript
client.forecast
ensembleDefine(args)C#
client.Forecast
public Task<JsonNode?> EnsembleDefine(string bench, string symbol, string id, IReadOnlyList<string> members, string rule, string? bands = null, IReadOnlyList<double>? weights = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EnsembleDefine(ctx context.Context, args ForecastEnsembleDefineArgs) (any, error)Java
client.forecast
public Object ensembleDefine(EnsembleDefineArgs args)C++
client.forecast
Json ensemble_define(const EnsembleDefineArgs &args)Julia
client.forecast
ensemble_define = (bench, symbol, id, members, rule; bands = nothing, weights = nothing)R
client$forecast
`ensemble_define` = function(bench, symbol, id, members, rule, bands = NULL, weights = NULL)Rust
client.forecast()
pub fn ensemble_define(&self, args: ForecastEnsembleDefineArgs) -> Result<Value, Error>forecast_ensemble_list#
List a workbench's ensembles
Answers the ensembles declared on a workbench: each one's label, market, members, rules, the latest member arrival its forecast was made from, and what it last said where none stands.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_ensemble_list",
"arguments": {
"bench": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def ensemble_list(self, bench: str) -> Dict[str, Any]JavaScript
client.forecast
ensembleList(args)C#
client.Forecast
public Task<JsonNode?> EnsembleList(string bench, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EnsembleList(ctx context.Context, args ForecastEnsembleListArgs) (any, error)Java
client.forecast
public Object ensembleList(EnsembleListArgs args)C++
client.forecast
Json ensemble_list(const EnsembleListArgs &args)Julia
client.forecast
ensemble_list = (bench)R
client$forecast
`ensemble_list` = function(bench)Rust
client.forecast()
pub fn ensemble_list(&self, args: ForecastEnsembleListArgs) -> Result<Value, Error>forecast_ensemble_remove#
Remove an ensemble
Removes an ensemble from a workbench's market, and its forecast with it. Answers whether one was there.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | |
id | string | yes | — | |
symbol | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_ensemble_remove",
"arguments": {
"bench": "…",
"id": "…",
"symbol": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def ensemble_remove(self, bench: str, symbol: str, id: str) -> Dict[str, Any]JavaScript
client.forecast
ensembleRemove(args)C#
client.Forecast
public Task<JsonNode?> EnsembleRemove(string bench, string symbol, string id, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EnsembleRemove(ctx context.Context, args ForecastEnsembleRemoveArgs) (any, error)Java
client.forecast
public Object ensembleRemove(EnsembleRemoveArgs args)C++
client.forecast
Json ensemble_remove(const EnsembleRemoveArgs &args)Julia
client.forecast
ensemble_remove = (bench, symbol, id)R
client$forecast
`ensemble_remove` = function(bench, symbol, id)Rust
client.forecast()
pub fn ensemble_remove(&self, args: ForecastEnsembleRemoveArgs) -> Result<Value, Error>forecast_eval_batch#
Run a batch of evaluation runs with ONNX models
Runs one evaluation run per cell over the workbench's own history, each with an ONNX model from the models folder asked INSIDE the loop by Bentrix's built-in engine: at each close the window its manifest describes is cut there, the model run, its output put as that close's forecast, stamped close + latency, and scored as forecast_eval_close scores. The workbench's clock does not move. Answers each cell's report, or why it did not run, in the cells' order.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | |
cells | array of object | yes | — | One evaluation run each. |
cells[].file | string | yes | — | An ONNX model's folder in the models folder: the model the run asks at each close. |
cells[].from_ms | integer | yes | — | |
cells[].latency | any | — | — | As forecast_eval_make's: "none", "measured" or a number of ms. |
cells[].stride | integer | — | — | |
cells[].symbol | string | — | — | The market it forecasts, one of the workbench's; where its manifest names markets, the first of them. |
cells[].to_ms | integer | — | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_eval_batch",
"arguments": {
"bench": "…",
"cells": []
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def eval_batch(self, bench: str, cells: List[EvalCell]) -> Dict[str, Any]JavaScript
client.forecast
evalBatch(args)C#
client.Forecast
public Task<JsonNode?> EvalBatch(string bench, object cells, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EvalBatch(ctx context.Context, args ForecastEvalBatchArgs) (any, error)Java
client.forecast
public Object evalBatch(EvalBatchArgs args)C++
client.forecast
Json eval_batch(const EvalBatchArgs &args)Julia
client.forecast
eval_batch = (bench, cells)R
client$forecast
`eval_batch` = function(bench, cells)Rust
client.forecast()
pub fn eval_batch(&self, args: ForecastEvalBatchArgs) -> Result<Value, Error>forecast_eval_close#
End an evaluation run and report it
Ends an evaluation run: its report (forecast_report's measures over the run's forecasts against the workbench's history, each step only if it had not closed at its stamped arrival, the latency said) and its journal written as one JSON-lines file in the export folder under this agent's name. The bench's own journal is not touched.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
eval | integer | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_eval_close",
"arguments": {
"eval": 1
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def eval_close(self, eval: int) -> Dict[str, Any]JavaScript
client.forecast
evalClose(args)C#
client.Forecast
public Task<JsonNode?> EvalClose(long eval, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EvalClose(ctx context.Context, args ForecastEvalCloseArgs) (any, error)Java
client.forecast
public Object evalClose(EvalCloseArgs args)C++
client.forecast
Json eval_close(const EvalCloseArgs &args)Julia
client.forecast
eval_close = (eval)R
client$forecast
`eval_close` = function(eval)Rust
client.forecast()
pub fn eval_close(&self, args: ForecastEvalCloseArgs) -> Result<Value, Error>forecast_eval_make#
Start an evaluation run over history
Starts an evaluation run over the workbench's own history between from_ms and to_ms (its clock at most; the clock does not move): the closes of forecast_tf on the first market, one in stride. Forecast_eval_next hands the window cut at each close and scores the forecast handed back for the close before; forecast_eval_close answers the report. Each forecast's arrival is stamped close + latency (none, measured - this model's mean live latency on the bench's journal, 0 and said when it has none - or N ms), and a step it could already see is late and unscored, exactly as live. Over a span the workbench's laboratory does not hold nothing is made or fetched: the answer is an ask - which laboratory, the span, the days and markets downloaded, what MetaTrader will be asked - and a watch uri, and the person answers on one sheet in Bentrix's window (Make it and run, or No); forecast_eval_state and the event bentrix://forecasts/eval say what came of it. Answers the eval's id, the closes and what it runs on.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | The workbench whose history the run walks; its clock does not move. |
forecast_tf | string | yes | — | The interval whose closes the run walks, and the forecast's. |
frames | array of string | yes | — | The frames of each window: intervals' labels. |
from_ms | integer | yes | — | |
latency | any | — | — | The latency each forecast is stamped with: "none", "measured" (this model's mean live latency on the bench's journal, the default), or a number of ms. |
limit | integer | — | — | Closed bars per frame in each window (200 when omitted). |
model | string | yes | — | The model label the run's forecasts carry. |
retrain | string | — | — | When a retrain is due: "session" (each new day), "week", or a count of closes. |
run_model | string | — | — | **A model of the models folder Bentrix runs at each close itself**the run is driven by Bentrix to its end, the model handed each window and its answer scored, its label the model's own; omitted, the caller drives the run with forecast_eval_next. |
stride | integer | — | — | One close in N. |
symbols | array of string | yes | — | The markets of each window, the first the forecast's. |
to_ms | integer | — | — | At most the workbench's clock; omitted, the clock. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_eval_make",
"arguments": {
"bench": "…",
"forecast_tf": "…",
"frames": [],
"from_ms": 1,
"model": "…",
"symbols": []
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def eval_make(self, bench: str, symbols: List[str], frames: List[str], forecast_tf: str, from_ms: int, model: str, *, latency: Optional[Any] = None, limit: Optional[int] = None, retrain: Optional[str] = None, run_model: Optional[str] = None, stride: Optional[int] = None, to_ms: Optional[int] = None) -> Dict[str, Any]JavaScript
client.forecast
evalMake(args)C#
client.Forecast
public Task<JsonNode?> EvalMake(string bench, IReadOnlyList<string> symbols, IReadOnlyList<string> frames, string forecastTf, long fromMs, string model, object? latency = null, long? limit = null, string? retrain = null, string? runModel = null, long? stride = null, long? toMs = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EvalMake(ctx context.Context, args ForecastEvalMakeArgs) (any, error)Java
client.forecast
public Object evalMake(EvalMakeArgs args)C++
client.forecast
Json eval_make(const EvalMakeArgs &args)Julia
client.forecast
eval_make = (bench, symbols, frames, forecast_tf, from_ms, model; latency = nothing, limit = nothing, retrain = nothing, run_model = nothing, stride = nothing, to_ms = nothing)R
client$forecast
`eval_make` = function(bench, symbols, frames, forecast_tf, from_ms, model, latency = NULL, limit = NULL, retrain = NULL, run_model = NULL, stride = NULL, to_ms = NULL)Rust
client.forecast()
pub fn eval_make(&self, args: ForecastEvalMakeArgs) -> Result<Value, Error>forecast_eval_next#
The next window of an evaluation run
Scores the forecast handed for the last window - checked as forecast_put checks it, its arrival stamped at that window's close plus the run's latency - and hands the window cut at the next close: close_ms, the window (bars_window's answer at that instant, nothing later), done once the closes are walked, scored (the forecasts recorded so far), and retrain_due where the run's retrain rule falls.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
eval | integer | yes | — | |
forecast | any | — | — | The forecast for the window handed last, as forecast_spec (its model and market the run's; its anchor the last closed bar of that window's close). Omitted for the first window, or to pass a close. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_eval_next",
"arguments": {
"eval": 1
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def eval_next(self, eval: int, *, forecast: Optional[Any] = None) -> Dict[str, Any]JavaScript
client.forecast
evalNext(args)C#
client.Forecast
public Task<JsonNode?> EvalNext(long eval, object? forecast = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EvalNext(ctx context.Context, args ForecastEvalNextArgs) (any, error)Java
client.forecast
public Object evalNext(EvalNextArgs args)C++
client.forecast
Json eval_next(const EvalNextArgs &args)Julia
client.forecast
eval_next = (eval; forecast = nothing)R
client$forecast
`eval_next` = function(eval, forecast = NULL)Rust
client.forecast()
pub fn eval_next(&self, args: ForecastEvalNextArgs) -> Result<Value, Error>forecast_eval_state#
Where an evaluation run or its ask stands
A run's closes walked and left, its forecasts recorded, its latency rule and retrain rule; or where an ask forecast_eval_make answered stands: asked (the sheet stands in Bentrix's window), confirmed (Make it and run pressed), made_laboratory (the workbench over the span is made and its days are downloading), started (with the eval to drive), declined (by the person - never a failure), or failed (with why). The person's press on the sheet is the one answer; no tool answers it. The event bentrix://forecasts/eval carries each move of an ask.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
ask | string | — | — | Or an ask it answered (bentrix://ask/N), over days the workbench's laboratory did not hold. |
eval | integer | — | — | A run forecast_eval_make started. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_eval_state",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def eval_state(self, *, ask: Optional[str] = None, eval: Optional[int] = None) -> Dict[str, Any]JavaScript
client.forecast
evalState(args)C#
client.Forecast
public Task<JsonNode?> EvalState(string? ask = null, long? eval = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) EvalState(ctx context.Context, args ForecastEvalStateArgs) (any, error)Java
client.forecast
public Object evalState(EvalStateArgs args)C++
client.forecast
Json eval_state(const EvalStateArgs &args)Julia
client.forecast
eval_state = (; ask = nothing, eval = nothing)R
client$forecast
`eval_state` = function(ask = NULL, eval = NULL)Rust
client.forecast()
pub fn eval_state(&self, args: ForecastEvalStateArgs) -> Result<Value, Error>forecast_get#
Read the forecasts on a workbench
Answers the forecasts a reader at at_ms (the workbench's clock when omitted) sees on the workbench, by arrival - never one that arrived after that instant - each with its model, market, epoch, form, anchor, put_ms, steps' count, state (current, partly realized, realized), how many steps have closed, who put it and its colours; steps true hands the steps. Arrivals lists every arrival the workbench keeps per model.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
at_ms | integer | — | — | The instant to read at, UTC ms: what a reader at that instant saw. Omitted, the workbench's clock. |
bench | string | yes | — | The workbench's uri. |
model | string | — | — | One model; omitted, every model. |
steps | boolean | — | false | True hands each forecast's steps too. |
symbol | string | — | — | One market; omitted, every market. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_get",
"arguments": {
"bench": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def get(self, bench: str, *, at_ms: Optional[int] = None, model: Optional[str] = None, steps: Optional[bool] = None, symbol: Optional[str] = None) -> Dict[str, Any]JavaScript
client.forecast
get(args)C#
client.Forecast
public Task<JsonNode?> Get(string bench, long? atMs = null, string? model = null, bool? steps = null, string? symbol = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) Get(ctx context.Context, args ForecastGetArgs) (any, error)Java
client.forecast
public Object get(GetArgs args)C++
client.forecast
Json get(const GetArgs &args)Julia
client.forecast
get = (bench; at_ms = nothing, model = nothing, steps = nothing, symbol = nothing)R
client$forecast
`get` = function(bench, at_ms = NULL, model = NULL, steps = NULL, symbol = NULL)Rust
client.forecast()
pub fn get(&self, args: ForecastGetArgs) -> Result<Value, Error>forecast_preset_apply#
Apply a forecast preset
Applies a preset's look to a chart, or with all true to every chart of that chart's workbench, as the card's Preset row does; each chart keeps its Show and the models its legend hid. Answers the charts it was applied to.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
all | boolean | — | false | |
chart | string | yes | — | The chart it is applied to; omitted with all true, every chart of the workbench the chart is on. |
name | string | yes | — | The preset: bentrix, quiet, or a name it was saved under. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_preset_apply",
"arguments": {
"chart": "…",
"name": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def preset_apply(self, name: str, chart: str, *, all: Optional[bool] = None) -> Dict[str, Any]JavaScript
client.forecast
presetApply(args)C#
client.Forecast
public Task<JsonNode?> PresetApply(string name, string chart, bool? all = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) PresetApply(ctx context.Context, args ForecastPresetApplyArgs) (any, error)Java
client.forecast
public Object presetApply(PresetApplyArgs args)C++
client.forecast
Json preset_apply(const PresetApplyArgs &args)Julia
client.forecast
preset_apply = (name, chart; all = nothing)R
client$forecast
`preset_apply` = function(name, chart, all = NULL)Rust
client.forecast()
pub fn preset_apply(&self, args: ForecastPresetApplyArgs) -> Result<Value, Error>forecast_preset_delete#
Delete a saved forecast preset
Deletes a preset the person saved; Bentrix's own (bentrix, quiet) cannot be. Answers every preset's name left.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
name | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_preset_delete",
"arguments": {
"name": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def preset_delete(self, name: str) -> Dict[str, Any]JavaScript
client.forecast
presetDelete(args)C#
client.Forecast
public Task<JsonNode?> PresetDelete(string name, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) PresetDelete(ctx context.Context, args ForecastPresetDeleteArgs) (any, error)Java
client.forecast
public Object presetDelete(PresetDeleteArgs args)C++
client.forecast
Json preset_delete(const PresetDeleteArgs &args)Julia
client.forecast
preset_delete = (name)R
client$forecast
`preset_delete` = function(name)Rust
client.forecast()
pub fn preset_delete(&self, args: ForecastPresetDeleteArgs) -> Result<Value, Error>forecast_preset_save#
Save a chart's forecast look as a preset
Saves a chart's forecast look - every row of its Forecast tab but Show and the models its legend hid - under a name, kept on this machine; the card's Preset row offers it beside Bentrix's own presets (bentrix, quiet). Saving a name again replaces it. Answers every preset's name.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
chart | string | yes | — | The chart whose look is saved. |
name | string | yes | — | The preset's name, [a-z0-9_]{1,32}, not a built-in's (bentrix, quiet). |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_preset_save",
"arguments": {
"chart": "…",
"name": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def preset_save(self, chart: str, name: str) -> Dict[str, Any]JavaScript
client.forecast
presetSave(args)C#
client.Forecast
public Task<JsonNode?> PresetSave(string chart, string name, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) PresetSave(ctx context.Context, args ForecastPresetSaveArgs) (any, error)Java
client.forecast
public Object presetSave(PresetSaveArgs args)C++
client.forecast
Json preset_save(const PresetSaveArgs &args)Julia
client.forecast
preset_save = (chart, name)R
client$forecast
`preset_save` = function(chart, name)Rust
client.forecast()
pub fn preset_save(&self, args: ForecastPresetSaveArgs) -> Result<Value, Error>forecast_put#
Put a model's forecast on a workbench
Hands over a forecast_spec: drawn on every chart of its market on the workbench from the instant it arrives, which Bentrix stamps as put_ms on the workbench's own clock (a laboratory's replay instant, a live bench's market clock) - no reader sees it before. Refused by name where it cannot be true (a high under its body, a band upside down, falling quantiles, an anchor that is not a closed bar of the form's interval, an element form naming an interval) with what is offered instead; a lower epoch than the model's standing forecast is refused; past Models per market the answer names the setting. Answers the arrival, the state, where the steps end, the replaced epoch, and each chart of the market with where the forecast stands on it.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | The workbench's uri. |
forecast | any | yes | — | The forecast, as forecast_spec describes it. |
steps_total | integer | — | — | **A long forecast in chunks**the steps the whole forecast will hold. Its steps here are the first chunk; the rest come by forecast_put_chunk, and it arrives - for every reader - when the last one lands. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_put",
"arguments": {
"bench": "…",
"forecast": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def put(self, bench: str, forecast: Any, *, steps_total: Optional[int] = None) -> Dict[str, Any]JavaScript
client.forecast
put(args)C#
client.Forecast
public Task<JsonNode?> Put(string bench, object forecast, long? stepsTotal = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) Put(ctx context.Context, args ForecastPutArgs) (any, error)Java
client.forecast
public Object put(PutArgs args)C++
client.forecast
Json put(const PutArgs &args)Julia
client.forecast
put = (bench, forecast; steps_total = nothing)R
client$forecast
`put` = function(bench, forecast, steps_total = NULL)Rust
client.forecast()
pub fn put(&self, args: ForecastPutArgs) -> Result<Value, Error>forecast_put_chunk#
Send the next chunk of a long forecast
Appends steps to a forecast opened with forecast_put and steps_total, from_step being the count already sent. Until the last chunk lands the forecast exists for no reader (the legend says receiving N of M); at the last one the whole forecast is checked as forecast_put checks it and arrives then, stamped put_ms. A chunk out of order, of another epoch or past the total is refused by name. Answers have and of, and at the last chunk forecast_put's answer.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | The workbench's uri. |
epoch | integer | yes | — | The epoch the forecast was opened with. |
from_step | integer | yes | — | The index (0-based) of this chunk's first step: the count of steps already sent. |
model | string | yes | — | |
steps | array of any | yes | — | The steps, as forecast_spec's steps. |
symbol | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_put_chunk",
"arguments": {
"bench": "…",
"epoch": 1,
"from_step": 1,
"model": "…",
"steps": [],
"symbol": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def put_chunk(self, bench: str, symbol: str, model: str, epoch: int, from_step: int, steps: List[Any]) -> Dict[str, Any]JavaScript
client.forecast
putChunk(args)C#
client.Forecast
public Task<JsonNode?> PutChunk(string bench, string symbol, string model, long epoch, long fromStep, object steps, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) PutChunk(ctx context.Context, args ForecastPutChunkArgs) (any, error)Java
client.forecast
public Object putChunk(PutChunkArgs args)C++
client.forecast
Json put_chunk(const PutChunkArgs &args)Julia
client.forecast
put_chunk = (bench, symbol, model, epoch, from_step, steps)R
client$forecast
`put_chunk` = function(bench, symbol, model, epoch, from_step, steps)Rust
client.forecast()
pub fn put_chunk(&self, args: ForecastPutChunkArgs) -> Result<Value, Error>forecast_put_many#
Put several forecasts at once
Hands over up to 256 forecast_specs to one workbench in one call, every one arriving at the same instant of its clock: several markets and several models. Each refused one is named by its index with why; all_or_nothing lands none when one is refused. Answers put (each landed forecast as forecast_put answers it) and refused [{index, why}].
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
all_or_nothing | boolean | — | false | True lands none when one is refused; false (the default) lands every one that can be, and names the rest. |
bench | string | yes | — | The workbench's uri. |
forecasts | array of any | yes | — | The forecasts, each a forecast_spec: several markets, several models, at most 256. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_put_many",
"arguments": {
"bench": "…",
"forecasts": []
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def put_many(self, bench: str, forecasts: List[Any], *, all_or_nothing: Optional[bool] = None) -> Dict[str, Any]JavaScript
client.forecast
putMany(args)C#
client.Forecast
public Task<JsonNode?> PutMany(string bench, object forecasts, bool? allOrNothing = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) PutMany(ctx context.Context, args ForecastPutManyArgs) (any, error)Java
client.forecast
public Object putMany(PutManyArgs args)C++
client.forecast
Json put_many(const PutManyArgs &args)Julia
client.forecast
put_many = (bench, forecasts; all_or_nothing = nothing)R
client$forecast
`put_many` = function(bench, forecasts, all_or_nothing = NULL)Rust
client.forecast()
pub fn put_many(&self, args: ForecastPutManyArgs) -> Result<Value, Error>forecast_report#
Report how a model's forecasts did
Scores a model's journalled forecasts on one market against the bars the workbench's history holds, up to its clock - each step only if it had not closed when its forecast arrived: per step and overall, the count, the close's mean absolute error, its percentage, the root mean square error, the mean signed error, the direction hit rate (the close's move from the anchor's own close), each band's coverage against its nominal p, the quantiles' pinball loss, the samples' CRPS, and the mean latency (put_ms after the anchor's close). Steps still to close are pending; steps a late arrival could already see are late and unscored.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | |
last | integer | — | — | Only the newest N forecasts. |
model | string | yes | — | |
since_ms | integer | — | — | Only forecasts that arrived at or after this instant, UTC ms. |
source | string | — | — | Live or eval; omitted, both. |
symbol | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "forecast_report",
"arguments": {
"bench": "…",
"model": "…",
"symbol": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.forecast
def report(self, bench: str, symbol: str, model: str, *, last: Optional[int] = None, since_ms: Optional[int] = None, source: Optional[str] = None) -> Dict[str, Any]JavaScript
client.forecast
report(args)C#
client.Forecast
public Task<JsonNode?> Report(string bench, string symbol, string model, long? last = null, long? sinceMs = null, string? source = null, CancellationToken ct = default)Go
client.Forecast
func (a *ForecastAPI) Report(ctx context.Context, args ForecastReportArgs) (any, error)Java
client.forecast
public Object report(ReportArgs args)C++
client.forecast
Json report(const ReportArgs &args)Julia
client.forecast
report = (bench, symbol, model; last = nothing, since_ms = nothing, source = nothing)R
client$forecast
`report` = function(bench, symbol, model, last = NULL, since_ms = NULL, source = NULL)Rust
client.forecast()
pub fn report(&self, args: ForecastReportArgs) -> Result<Value, Error>