Tool · runs in your browser

Threshold explorer

One number, the threshold δ, turns a price path into events. Move the sliders, then replay the path: an extremum becomes part of the record only after price has moved away from it by δ.

Synthetic random-walk path generated in your browser. It is not market data. Nothing is sent to a server. Click an event line, or use the arrows, to select it.

01 / How to read the chart

The thin line is the price path. Each thick line joins two confirmed extrema: a starting extremum F and the following extremum S. Together they form one event, F→S, in the terminology of the method. In standard terminology this is a directional-change event.

The latest extremum is drawn as an open ring. It is not yet an event endpoint. The shaded band shows how far price must still travel against it. Only when price crosses the dotted confirmation line does the ring become a confirmed point and a new event begin.

02 / Two numbers make the threshold

The author builds the threshold from a small unit rather than choosing it directly:

δ = n · module · Price

The module is the smallest price change worth using. A move smaller than the cost of a trade cannot be turned into a result even when its direction is called correctly. n says how many modules form one threshold. Price is the price of the current extremum, so δ is a share of price, not a fixed number of points. It is recomputed whenever the extremum moves.

The starting values, a module of 0.4 % and n = 5 (δ = 2 %), are the defaults of the author’s 2016 measurement script, TrendMetr.

The lower chart counts events on the whole path for every threshold from 0.4 % to 8 %. Halving δ produces many more events. No threshold is the true one: the threshold is a choice of scale, and the markup is a description at that scale.

Events counted on the current synthetic path. The dot marks the threshold chosen above.

03 / Why the last event is always open

Press Replay. While price keeps rising, the highest price so far is only a candidate. It becomes an extremum when price has fallen from it by more than δ. The square marker shows that moment for the selected event; the dotted corner joins it to the extremum it confirmed.

Event markup therefore lags price by one threshold. Every confirmed point is known only after the fact, and the most recent event is always unfinished. Any honest use of event markup has to show that open end rather than hide it.

04 / Contra and strength Φ

Contra is the largest pullback inside an event that does not exceed the threshold. It is measured from the highest price reached so far (or the lowest, in a falling event) to the deepest point of the pullback. It is bounded below by the module: when no pullback reaches one module, the module itself is used and the read-out says so.

Strength relates the event’s size to its contra:

Φ = S − FContr

A rising event has positive Φ, a falling one negative. Because a pullback inside an event cannot exceed δ without ending the event, |Φ| under this definition is at least about 1. Φ is the author’s own measure; no direct counterpart has been found in the literature. Its limiting value, Babylon, is an open research question.

05 / A caution: noise has events too

Every path on this page is random. It still breaks into clean-looking events, and some of them still have large Φ. Event markup will draw structure on any series. Whether market events differ from those of noise is an empirical question. It has to be answered by comparison, for example with shuffled versions of the same data. It cannot be answered by looking at the zigzag.

06 / Implementation notes

Read the method →