Put your own model's forecast on the chart, ahead of the newest bar — or its output of any other kind, a probability, a rank, a position, levels or a decision — from a program of yours, from a Python model Bentrix runs at each close, or from a model file in the open ONNX format that Bentrix runs itself.
A forecast is your model's word about the bars to come: the next candles of an interval, the next bricks of a Renko chart, the next lines of a Kagi chart, or just the next closes. Bentrix draws it on the chart past the newest bar, with its uncertainty around it, keeps it with what actually came, and lets you put it to work in alerts, strategies and indicators.
A forecast is your model's, never Bentrix's. Bentrix draws what the model said; it does not say the model is right, and no figure here is a promise of a return.
01Three ways to bring a model
| How it works | Good for | |
|---|---|---|
| A program of your own | Your program, in any of the SDK's nine languages, or an AI assistant over MCP, builds a forecast and puts it on a workbench with forecast_put. | Any model, anywhere — a notebook, a server, a cloud service. |
| A Python model Bentrix runs | A .py file in your models folder declares one model. At each close of its interval Bentrix hands it the window and draws what it answers. | A model you want to see working live with nothing else to run. |
| A model file | An ONNX file beside a small manifest in your models folder. Bentrix runs it itself, with no Python — on its built-in engine, or on the faster ONNX Runtime engine, on the processor or your graphics card. | A trained network from PyTorch, TensorFlow, scikit-learn or any tool that exports ONNX. |
Each is a page of its own below.
02Outputs of every kind
A forecast of candles is one thing a model can say. A probability, named outcomes, quantiles, a rank, a target position, portfolio weights, an event, levels, a decision, a sentence or lines of its own are others — Bentrix takes each as an output, draws it in a pane or on the price pane, and lets you set what it means: a model's output of any kind.
03When a forecast exists
A forecast exists from the moment it arrives, never earlier. Bentrix stamps every forecast with its arrival on the workbench's own clock — the replay's instant in the laboratory, the market's clock on paper and on a real account. Every reader takes, at a moment, the newest forecast that had arrived by then: the chart, the hover, an alert, a strategy, an indicator, an evaluation.
That is why replaying history gives exactly what live gave: a model that took two seconds to answer is two seconds late in the replay too, and a strategy over history can never act on a forecast earlier than it could have acted live.
Read a forecast at its anchor is the one exception, and you turn it on yourself (Settings › Forecast). It reads a model's earlier forecasts as if they had existed at the close they were made for — useful in the laboratory when you want to set a model's latency aside. It is marked on every reader that uses it, and it never reads what has not arrived: on a paper or real workbench the newest close is always read by arrival, and a strategy on a real account that reads a forecast is refused while it is on.
04What a forecast does not tell you
- Whether the model is any good. A forecast drawn on a chart looks convincing whatever its quality. The record and the evaluation measure it against what came; read them before trusting one.
- What will happen. A band is the model's own statement of its uncertainty, not a guarantee; prices leave bands.
- Anything about the market Bentrix vouches for. Bentrix checks that a forecast is well formed — a high above its body, steps in order, an anchor at a real bar — and nothing else.
In this part
- A forecast on the chartWhat Bentrix draws for a forecast, how it stands on a chart of another type or interval, and every setting of the chart card's Forecast tab.
- From your own programBuild a forecast in any of the SDK's nine languages, or have an AI assistant put one over MCP — the forecast document, its two forms, and how it lands.
- A model Bentrix runs for youA Python file in your models folder that Bentrix runs at each close of its interval, in a process of its own, with your own interpreter.
- A model file Bentrix runs (ONNX)A model in the open ONNX format, run by Bentrix itself with no Python — its folder and manifest, the built-in engine, the faster ONNX Runtime engine on your processor or graphics card, and how Bentrix keeps a library from being a way in.
- The record and the evaluationEvery forecast kept with what came, a report and a comparison of models, an evaluation over years of history at machine speed, and the one sheet that asks you before anything is downloaded.
- Putting a forecast to workAn alert when the price crosses a forecast, a strategy rule that reads one, an Assay indicator that takes one as input, and ensembles of your models.
- Settings › ForecastEvery row of the Forecast page of the Settings window — what holds for every chart's forecasts, and the models and engines Bentrix runs.
- Outputs in plain words — start hereNew to models? What a model is, what its output is, what Bentrix does with it and what it never does — with the three ideas everything else rests on, and the words these pages use.
- Your first output, step by stepPut a model's number on your chart in a few minutes, give it a meaning, watch it make arrows, and see how often it was right — on a practice market, with a short program you can copy, or by asking an AI assistant.
- A model's output of any kindA forecast of candles is one thing a model can say. A probability, a ranking, a target position, a set of levels or a decision are others — what each kind is, how Bentrix draws it, and the one rule every kind shares.
- What an output means to youThe meaning sheet — what a high or a low value means, the thresholds a value acts above and below, the room it holds an act in, your own words, and what happens when an assistant sets a meaning for you.
- A number — scalarOne number a step — a probability of a rise, a strength, an expected return, a price — drawn in a pane of its own, with your thresholds and the acts they make.
- Named outcomesA probability for each of several named outcomes — up, flat, down, or a market's regimes — drawn as stacked areas, or as a lasting state behind the candles.
- QuantilesA few levels of a distribution — the 5th, 50th and 95th percentile of a return or a price — drawn as a fan with its median bold, and measured by how often reality fell inside.
- A rankA place from 0 to 1 among many markets on one date — how tournament-style and cross-sectional models answer — measured by the correlation of the ranks with what you supply, per date.
- A target positionHow much to hold — from fully short to fully long — drawn as a stepped line shaded on either side of zero, and measured only by a laboratory strategy run.
- Portfolio weightsA share for each market of a portfolio — long-only, or long and short within a bound — drawn as stacked areas.
- An eventThe chance that something happens soon — a breakout, a spike, a crash — drawn as a score with a mark over the bar where it stood high, and measured by how often it fired before the event and how early.
- LevelsNamed prices — a stop, a target, an entry — drawn as lines from the moment they arrive, each ending where a bar first reaches it, and measured by how often the target came before the stop.
- An actionA decision — buy, sell, close the buys, close the sells, or nothing — drawn as an arrow at the bar it arrived in, and acted on only through a strategy you run.
- TextA sentence of explanation from a model or an assistant — kept with the output and read by your programs, never drawn on the chart and never measured.
- Named lines — seriesLines a model pushes with no meaning of their own — features, intermediate values — drawn in a pane, a line each.
- Outputs at workAn alert when an output's act becomes buy, a strategy rule that reads an output's field, and the conditions a meaning declares — every one read by arrival.
- Measuring an outputHow each kind is scored against what came — only against bars that had not closed when the value arrived — what you hand over for what Bentrix cannot compute, and a comparison of several outputs side by side.
- Putting an outputFrom your own program in any of the SDK's nine languages, from a Python model Bentrix runs, or from a model file — the output document, and how it lands.
- Common questionsWhen an output does not appear, an arrow stands somewhere you did not expect, a value is refused or a strategy ignores it — the usual causes, in plain words, and what to do about each.