Named 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.
01In plain words
A model may name prices rather than chances: put the stop at 1.0790, the target at 1.0920. A stop is the price where you would give up on a trade to limit the loss; a target is the price where you would take the profit. A model can also name any other level, such as an entry price or a support line.
02An everyday example
A hiking guide says if we are not at the hut by 2 pm we turn back; the summit is at 3,000 metres. One line is the point to give up, the other the point to aim for. Levels are those two lines for a trade.
03How to read it on the chart
- The target is drawn in the rising colour, the stop in the falling colour, any other level in the ink colour.
- Each line starts on the candle where the levels arrived.
- Each line ends with a mark on the first candle whose range reached it — its high or its low, so even a brief touch counts — or where the model's next levels replace these.
04Giving it a meaning
Levels need no meaning: they are prices. A strategy rule can read each level by its name, as a price — for example, to close a trade when the price reaches the model's target. See outputs at work.
05Watch out for
- A candle that reaches both lines counts as the stop. A candle does not say which price came first, so Bentrix assumes the worse one. This errs against the model, never for it.
06For programmers: what to hand Bentrix
One {"levels": {name: price}}, with until_ms where the levels expire. The names target and stop are the ones measured.
spec = bentrix.Output.levels("sr_levels", "EURUSD", anchor_ms, {"stop": 1.0790, "target": 1.0920})07What the chart shows
On the price pane, each level a line from the bar it arrived in to the next output (or its until_ms) — the target in the rising colour, the stop in the falling, any other in ink. A line ends with a mark on the first bar whose range reaches it: read from the bar's high and low, never its close, so a wick that touched the target counts.
08What is measured
Of the trades whose target or stop was reached, the share that reached the target first. A bar that reaches both counts as the stop: a bar does not say which came first, and the count errs against the model.