medianBarWidth()
function medianBarWidth(bars): number | undefined;Defined in: packages/core/src/momentum/bars.ts:121
The median width of a period's bars, in minutes; undefined for none.
Lets a caller compare periods: a first half sampled every five minutes beside a second half sampled every two draws bars of visibly different widths in one chart, which is almost always a data-prep slip rather than intent.
Parameters
| Parameter | Type |
|---|---|
bars | readonly MomentumBar[] |
Returns
number | undefined