Skip to content

charton API


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

Interface: TpoProfile ​

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

A time-price opportunity profile: every period (one bar) marks each price row its range touches, and rows stack the periods that reached them.

Properties ​

counts ​

counts: number[]

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

TPOs per row: how many periods reached it.


periods ​

periods: number

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

Periods in the profile, including skipped bars, so period numbers stay tied to time.


poc ​

poc: number

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

Row with the most TPOs (point of control), or -1 when empty.


rowPeriods ​

rowPeriods: number[][]

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

Period numbers (0 for the first bar) that reached each row, in time order.


rows ​

rows: number

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

Number of rows, from the lowest low to the highest high.


rowSize ​

rowSize: number

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

Row height in price units.


start ​

start: number

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

Lowest price of row 0; row r covers [start + r * rowSize, start + (r + 1) * rowSize).


time ​

time: number

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

Time of the first period: its bar's time, or the session start from computeTpoProfiles.


valueAreaHigh ​

valueAreaHigh: number

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

Highest value-area row, or -1.


valueAreaLow ​

valueAreaLow: number

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

Lowest value-area row, or -1.