Skip to content

charton API


charton API / @chart-on/core / index / groupLowerBars

Function: groupLowerBars() ​

groupLowerBars(chartTimes, lowerTimes): LowerBarRanges

Defined in: packages/core/src/indicators/steps.ts:154

The lower-interval bars inside each chart bar, for values such as the volume delta built from them: chart bar k holds the lower bars from its time up to the next chart bar's time, and the last chart bar holds every later lower bar. Lower bars before the first chart bar belong to none. A chart bar without lower bars (e.g. before a capped history starts) has from[k] === to[k]. Both time columns ascend.

Parameters ​

chartTimes ​

ArrayLike<number>

lowerTimes ​

ArrayLike<number>

Returns ​

LowerBarRanges