charton API / @chart-on/core / index / computeTpoProfile
Function: computeTpoProfile()
computeTpoProfile(
bars,from,to,options):TpoProfile
Defined in: packages/core/src/profile/tpo.ts:82
TPO profile of bars [from, to), one period per bar (pass bars of the period length, often 30 minutes). Rows align to multiples of rowSize, and a bar marks every row from the one holding its low to the one holding its high. Bars with an invalid range mark nothing but still count as a period. The point of control and value area come from the TPO counts, with the same rules as the volume profile.
Parameters
bars
readonly Bar[]
from
number
to
number