pub struct SupportTestCount { /* private fields */ }Expand description
Rolling count of bars whose low is within 0.5% of the period’s lowest low.
Measures how many times price has tested the support level in the recent window. Higher counts suggest a stronger, well-tested support zone.
Implementations§
Trait Implementations§
Source§impl Signal for SupportTestCount
impl Signal for SupportTestCount
Source§fn is_ready(&self) -> bool
fn is_ready(&self) -> bool
Returns
true if the signal has accumulated enough bars to produce a value.Source§fn period(&self) -> usize
fn period(&self) -> usize
Returns the number of bars required before the signal produces a value.
Source§fn reset(&mut self)
fn reset(&mut self)
Resets the signal to its initial state as if no bars had been seen. Read more
Source§fn update_bar(&mut self, bar: &OhlcvBar) -> Result<SignalValue, FinError>
fn update_bar(&mut self, bar: &OhlcvBar) -> Result<SignalValue, FinError>
Auto Trait Implementations§
impl Freeze for SupportTestCount
impl RefUnwindSafe for SupportTestCount
impl Send for SupportTestCount
impl Sync for SupportTestCount
impl Unpin for SupportTestCount
impl UnsafeUnpin for SupportTestCount
impl UnwindSafe for SupportTestCount
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