pub struct SwingStructureEngine { /* private fields */ }Expand description
Detects swing pivots and derives SwingStructureOutput. Reuses the same left/right pivot
window as pivots_structure::PivotStructureEngine, but exposes the underlying leg sizes
instead of a single bounded score.
This is a composite/consumer of another indicator’s output, not a pure Indicator: it
needs the raw ATR in price units on every bar, not the %-of-price value that
indicator::atr::Atr returns. Convert via atr_raw = atr_pct / 100.0 * bar.close before
calling update.
Implementations§
Auto Trait Implementations§
impl Freeze for SwingStructureEngine
impl RefUnwindSafe for SwingStructureEngine
impl Send for SwingStructureEngine
impl Sync for SwingStructureEngine
impl Unpin for SwingStructureEngine
impl UnsafeUnpin for SwingStructureEngine
impl UnwindSafe for SwingStructureEngine
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