Type Alias LinkMissingPolicy

LinkMissingPolicy: "nearest" | "hide"

What a follower does when the leader's instant falls between its bars.

  • nearest (default): show the crosshair on the last bar that had OPENED by the leader's instant. A hole inside the follower's history is a missing bar, not a missing instant, and snapping to a real bar reads as "this one lines up" where a line floating between two candles belongs to neither.

    Deliberately not the closest bar by timestamp. A bar is stamped at its open and lasts until the next one opens, so past the halfway point of a daily bar the arithmetically nearest stamp is tomorrow's, and the follower would highlight a candle that did not exist yet at the leader's instant.

  • hide: draw nothing unless the follower has a bar at exactly that time. For a workspace where a linked crosshair is a data claim.

Both policies refuse to answer outside the follower's coverage: an instant before its first bar or after its last one is not a gap in its data, it is a period the chart does not cover at all, and pinning the crosshair to the first or last bar there would assert an alignment that does not exist.