pub struct PersistentVolumeProfileEngine { /* private fields */ }Implementations§
Source§impl PersistentVolumeProfileEngine
impl PersistentVolumeProfileEngine
Sourcepub fn new(lookback: usize, bin_width: f64) -> Self
pub fn new(lookback: usize, bin_width: f64) -> Self
bin_width is a fixed price-grid resolution (not derived from the rolling window’s
min/max), the mechanism that gives bins a stable identity across updates.
pub fn with_absorption_k(self, k: f64) -> Self
Sourcepub fn absorption_profile(&self) -> Vec<AbsorptionBin>
pub fn absorption_profile(&self) -> Vec<AbsorptionBin>
Per-bin absorption view: a bin is flagged when its volume-per-touch is a robust outlier
(median + absorption_k scaled-MAD) across the currently live bins — a small number of
bars depositing disproportionate volume at one price level without it rolling away.
Trait Implementations§
Source§impl Indicator for PersistentVolumeProfileEngine
impl Indicator for PersistentVolumeProfileEngine
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 PersistentVolumeProfileEngine
impl RefUnwindSafe for PersistentVolumeProfileEngine
impl Send for PersistentVolumeProfileEngine
impl Sync for PersistentVolumeProfileEngine
impl Unpin for PersistentVolumeProfileEngine
impl UnsafeUnpin for PersistentVolumeProfileEngine
impl UnwindSafe for PersistentVolumeProfileEngine
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