Skip to content

charton API


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

Function: computeTpoProfiles() ​

computeTpoProfiles(bars, options): TpoProfile[]

Defined in: packages/core/src/profile/tpo.ts:159

One TPO profile per session: bars are grouped by the period of interval (a trading day by default) that their time falls in, following timezone and session like barBucket, and bars outside the session are left out. Bars must be in time order. Each profile's time is its session start.

Parameters ​

bars ​

readonly Bar[]

options ​

TpoSessionOptions

Returns ​

TpoProfile[]