pub struct RvolEngine { /* private fields */ }Expand description
Relative Volume (RVOL): this bar’s volume against the recent average.
RVOL = volume / avg, where avg is the plain mean of the last period volumes including
this bar’s own, and 1 for a zero average. Including the current bar damps the ratio: a
spike raises its own reference. For the comparison against the same time of day on earlier
days see super::rvat::RelativeVolumeAtTime.
First output: with the period-th bar. Indicator::reset clears the window.
Implementations§
Trait Implementations§
Source§impl Clone for RvolEngine
impl Clone for RvolEngine
Source§fn clone(&self) -> RvolEngine
fn clone(&self) -> RvolEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RvolEngine
impl Debug for RvolEngine
Source§impl Indicator for RvolEngine
impl Indicator for RvolEngine
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 RvolEngine
impl RefUnwindSafe for RvolEngine
impl Send for RvolEngine
impl Sync for RvolEngine
impl Unpin for RvolEngine
impl UnsafeUnpin for RvolEngine
impl UnwindSafe for RvolEngine
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