pub struct LiquidityPoolEngine { /* private fields */ }Expand description
Detects BSL/SSL pools from Equal High/Low pivot clusters and classifies every interaction as a stop hunt, a breakout, or (for a previously broken pool) a reclaim.
Implementations§
Source§impl LiquidityPoolEngine
impl LiquidityPoolEngine
pub fn new(pivot_len: usize, tolerance_pct: f64) -> Self
pub fn with_defaults() -> Self
pub fn pools(&self) -> &[LiquidityPool]
Trait Implementations§
Source§impl Indicator for LiquidityPoolEngine
impl Indicator for LiquidityPoolEngine
fn name(&self) -> &str
fn warmup_period(&self) -> usize
fn reset(&mut self)
fn on_bar(&mut self, bar: &Bar) -> Option<IndicatorOutput>
fn alerts(&self) -> Vec<IndicatorAlert>
Source§fn on_checked_bar(
&mut self,
bar: &Bar,
) -> Result<Option<IndicatorOutput>, BarValidationError>
fn on_checked_bar( &mut self, bar: &Bar, ) -> Result<Option<IndicatorOutput>, BarValidationError>
Validates a bar before forwarding it to
Indicator::on_bar.Auto Trait Implementations§
impl Freeze for LiquidityPoolEngine
impl RefUnwindSafe for LiquidityPoolEngine
impl Send for LiquidityPoolEngine
impl Sync for LiquidityPoolEngine
impl Unpin for LiquidityPoolEngine
impl UnsafeUnpin for LiquidityPoolEngine
impl UnwindSafe for LiquidityPoolEngine
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