Skip to main content

bar_close_from_open

Function bar_close_from_open 

Source
pub fn bar_close_from_open(
    open: UnixNanos,
    spec: &BarSpecification,
) -> UnixNanos
Expand description

Compute a bar’s close timestamp from its open timestamp and [BarSpecification].

Weekly/monthly bars are returned unchanged (IB stamps these at the period end).