pub struct BarInput {
pub index: usize,
pub timestamp_us: i64,
pub high: i64,
pub low: i64,
pub close: i64,
pub duration_us: Option<i64>,
}Expand description
Input bar for the ZigZag indicator.
Uses raw i64 values following the FixedPoint convention (i64 × 1e8). Only high, low, close are needed — open is not used in the ZigZag algorithm.
Fields§
§index: usize§timestamp_us: i64§high: i64Highest price in the bar (FixedPoint i64×1e8)
low: i64Lowest price in the bar (FixedPoint i64×1e8)
close: i64Closing price (FixedPoint i64×1e8)
duration_us: Option<i64>Bar duration in microseconds (None for the first/incomplete bar)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BarInput
impl RefUnwindSafe for BarInput
impl Send for BarInput
impl Sync for BarInput
impl Unpin for BarInput
impl UnsafeUnpin for BarInput
impl UnwindSafe for BarInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more