pub struct OrderBlock { /* private fields */ }Expand description
Institutional Order Block detector with lifecycle mitigation tracking.
Implementations§
Source§impl OrderBlock
impl OrderBlock
Sourcepub fn new(max_active_blocks: usize) -> Self
pub fn new(max_active_blocks: usize) -> Self
Construct a new OrderBlock detector with capacity limit.
Sourcepub fn with_config(config: OrderBlockConfig) -> Self
pub fn with_config(config: OrderBlockConfig) -> Self
Construct with full configuration.
Sourcepub fn process_batch(
&mut self,
bars: &[(f64, f64, f64, f64)],
) -> Vec<OrderBlockState>
pub fn process_batch( &mut self, bars: &[(f64, f64, f64, f64)], ) -> Vec<OrderBlockState>
Helper to process a batch of (open, high, low, close) bars.
Trait Implementations§
Source§impl Clone for OrderBlock
impl Clone for OrderBlock
Source§impl Debug for OrderBlock
impl Debug for OrderBlock
Source§impl Default for OrderBlock
impl Default for OrderBlock
Auto Trait Implementations§
impl Forget for OrderBlock
impl Freeze for OrderBlock
impl Move for OrderBlock
impl RefUnwindSafe for OrderBlock
impl Send for OrderBlock
impl Sync for OrderBlock
impl Unpin for OrderBlock
impl UnsafeUnpin for OrderBlock
impl UnwindSafe for OrderBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.