pub struct VortexEngine { /* private fields */ }Expand description
Vortex Indicator: +VI and -VI.
From the second bar on, VM+ = |high - prev_low|, VM- = |low - prev_high| and the true
range; +VI = sum(VM+) / sum(TR) and -VI = sum(VM-) / sum(TR) over the last period bars,
the sum of true ranges floored at 1e-8.
value and extra["vi_plus"]: +VI; extra["vi_minus"]: -VI. First output: with the
period + 1-th bar. Indicator::reset clears the windows.
Implementations§
Trait Implementations§
Source§impl Clone for VortexEngine
impl Clone for VortexEngine
Source§fn clone(&self) -> VortexEngine
fn clone(&self) -> VortexEngine
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 VortexEngine
impl Debug for VortexEngine
Source§impl Indicator for VortexEngine
impl Indicator for VortexEngine
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 VortexEngine
impl RefUnwindSafe for VortexEngine
impl Send for VortexEngine
impl Sync for VortexEngine
impl Unpin for VortexEngine
impl UnsafeUnpin for VortexEngine
impl UnwindSafe for VortexEngine
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