pub struct OrderBlockConfig {
pub max_active_blocks: usize,
pub zone_mode: OrderBlockZoneMode,
pub min_displacement_ratio: f64,
}Expand description
Tunable parameters for Order Block detection.
Fields§
§max_active_blocks: usizeMaximum number of active order blocks retained in memory.
zone_mode: OrderBlockZoneModeZone calculation mode (Wick vs Body).
min_displacement_ratio: f64Minimum displacement ratio: displacement_body / prev_candle_range. Default: 0.0.
Trait Implementations§
Source§impl Clone for OrderBlockConfig
impl Clone for OrderBlockConfig
Source§impl Debug for OrderBlockConfig
impl Debug for OrderBlockConfig
Auto Trait Implementations§
impl Forget for OrderBlockConfig
impl Freeze for OrderBlockConfig
impl Move for OrderBlockConfig
impl RefUnwindSafe for OrderBlockConfig
impl Send for OrderBlockConfig
impl Sync for OrderBlockConfig
impl Unpin for OrderBlockConfig
impl UnsafeUnpin for OrderBlockConfig
impl UnwindSafe for OrderBlockConfig
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.