A 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.
01In plain words
Some models do not give one number but a chance for each of several named outcomes: up 50 % · flat 30 % · down 20 %, or trending 70 % · ranging 30 %. The model names the outcomes itself. Usually exactly one of them comes true, so the chances add up to 100 %. A model that describes the market's state — calm or stormy, trending or ranging — is a common example; that state is often called a regime.
02An everyday example
A sports pundit says home win 50 %, draw 30 %, away win 20 %. Three named outcomes, one will happen, the chances add up to 100 %. A trading model says the same kind of thing about the next candles: up, flat or down.
03How to read it on the chart
- The pane stacks the outcomes' chances on top of each other, a colour each, from 0 at the bottom to 1 at the top. The thicker a colour's band, the more likely the model thinks that outcome is.
- A lasting state (an output the model marks as persistent) is also drawn as coloured bands behind the candles: each candle sits on the colour of the state the model believed in at that time. The band lasts until the model says something else — not until a time runs out.
- The legend row shows the most likely outcome now and its chance, such as trend 0.80.
04Giving it a meaning
In the meaning sheet, each outcome gets a word: up → Buy, down → Sell, flat → Nothing. An arrow appears on the candle where the most likely outcome's word changes — for example where down overtakes up.
05Watch out for
- The most likely outcome can still be unlikely. up 40 %, flat 35 %, down 25 % has up on top, but the model is far from sure.
- A regime is what the model believed, not what happened. The bands behind the candles show the model's view of each moment. Measure it to see how often that view was right.
06For programmers: what to hand Bentrix
names (the outcomes, in the order you want them drawn), exclusive, and one {"p": {name: probability}} a step. A model's raw scores rather than probabilities say softmax: true, and Bentrix normalises them. A regime that lasts until the model says otherwise is persistent: true.
spec = bentrix.Output.classes("regime_v2", "EURUSD", anchor_ms, {"trend": 0.7, "range": 0.3},
exclusive=True, persistent=True, output="regime")07What the chart shows
A pane of stacked areas for exclusive outcomes, or a line each where several may hold. A persistent output is also drawn as bands behind the candles, each bar in the colour of the outcome standing at its close — held until the next output replaces it, never ended by time.
Its meaning maps each outcome to a word (up → Buy, down → Sell); an arrow stands where the winning outcome's word begins.
08What is measured
Against the outcome that came — by the labels you hand over (output_actual_put), or, for an output naming exactly up and down, by the sign of the move: log-loss, accuracy of the winning outcome, and for each outcome its hits, misses, precision, recall and F1.
09What it does not tell you (more)
A regime's bands describe what the model believed; they say nothing of whether trading on it would have paid.