pub struct EomEngine { /* private fields */ }Expand description
Ease of Movement (EOM), smoothed over period bars.
distance = (high + low) / 2 - (prev_high + prev_low) / 2
box = (volume / volume_divisor) / (high - low) (range floored at 1e-8)
raw = distance / box (0 for box <= 1e-8)
EOM = SMA(period) of rawvolume_divisor (default 10000) only rescales volume into a readable unit. The first bar has
no predecessor and produces no raw value.
First output: with the period + 1-th bar. Indicator::reset clears the midpoint and the
average.
Implementations§
Trait Implementations§
Source§impl Indicator for EomEngine
impl Indicator for EomEngine
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 EomEngine
impl RefUnwindSafe for EomEngine
impl Send for EomEngine
impl Sync for EomEngine
impl Unpin for EomEngine
impl UnsafeUnpin for EomEngine
impl UnwindSafe for EomEngine
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