pub struct ExtendedVolumeProfileEngine { /* private fields */ }Expand description
Extended price/volume profile engine.
Implementations§
Source§impl ExtendedVolumeProfileEngine
impl ExtendedVolumeProfileEngine
pub fn new(lookback: usize, num_bins: usize) -> Self
Sourcepub fn with_thresholds(self, hvn_multiplier: f64, lvn_multiplier: f64) -> Self
pub fn with_thresholds(self, hvn_multiplier: f64, lvn_multiplier: f64) -> Self
Overrides the default HVN (1.5x mean) / LVN (0.5x mean) classification multipliers.
Sourcepub fn on_intrabar_group(
&mut self,
group: &IntrabarGroup,
) -> Option<IndicatorOutput>
pub fn on_intrabar_group( &mut self, group: &IntrabarGroup, ) -> Option<IndicatorOutput>
Feeds a confirmed IntrabarGroup (a parent bar’s full ordered child-bar sequence),
recording each child individually instead of the aggregate parent bar alone — finer
intrabar volume distribution than Indicator::on_bar’s per-parent-bar granularity.
lookback then counts child-bar entries, not parent bars.
Trait Implementations§
Source§impl Indicator for ExtendedVolumeProfileEngine
impl Indicator for ExtendedVolumeProfileEngine
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 ExtendedVolumeProfileEngine
impl RefUnwindSafe for ExtendedVolumeProfileEngine
impl Send for ExtendedVolumeProfileEngine
impl Sync for ExtendedVolumeProfileEngine
impl Unpin for ExtendedVolumeProfileEngine
impl UnsafeUnpin for ExtendedVolumeProfileEngine
impl UnwindSafe for ExtendedVolumeProfileEngine
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