• Per-bar flags marking the first bar of each calendar period, where isNew decides what "period" means for two instants.

    The test runs on session opens rather than on every bar, so a session that straddles the boundary is not cut in half: the last ninety minutes of a New York Friday fall on a Saturday in IST, and testing bar to bar would start the next week partway through Friday's session. With no readable sessions the test runs bar to bar, which is the same thing when each bar is its own session.

    Parameters

    • times: readonly number[]
    • isNew: (prevUtcSeconds: number, utcSeconds: number) => boolean

    Returns boolean[]