charton API / @chart-on/core / index / crossDirection
Function: crossDirection()
crossDirection(
level,from,to):CrossDirection|null
Defined in: packages/core/src/annotations/lines.ts:167
Direction in which a price moving from from to to crossed level, or null when it did not. Reaching the level counts and starting on it does not, so a price that touches a level and stays there is reported once.
Parameters
level
number
from
number
to
number
Returns
CrossDirection | null