Bentrix Docs
HomePricingDashboard

An event

The 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.

01In plain words

Some models watch for one thing that may happen soon: a breakout within the next three candles, a big move before the news. They give a score from 0 to 1: how likely the event is. They are detectors more than forecasters.

02An everyday example

A smoke alarm does not forecast the weather; it says something is burning, probably. An event output is an alarm of that kind for the market.

An event's score, with a mark where it reached one half A drawing of the idea, not a picture of the application.

03How to read it on the chart

  • The pane draws the score, with a faint line at 0.5.
  • A mark over a candle shows where the score reached one half or more when it arrived: where the alarm went off.

04Giving it a meaning

Set a threshold to turn a high score into an act, as for a number.

05Watch out for

  • An alarm that rings all the time is useless. Measuring an event counts the alarms no event followed, and how many candles of warning a true alarm gave.

06For programmers: what to hand Bentrix

One {"score": …} between 0 and 1, and where it applies within_steps (how soon) or expected_ms (when).

spec = bentrix.Output.event("breakout", "EURUSD", anchor_ms, 0.8, within_steps=3)

07What the chart shows

A pane of the score with 0.5 for reference, and a mark over the bar where an arrival's score stood at ½ or above.

08What is measured

Against the events you hand over (output_actual_put, event: true or false at each anchor): the probability's own measures (AUC, Brier, log-loss, calibration, hits at your threshold), and the lead time — how many bars before the event the score first fired — with the fires no event followed.

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