Struct ta::indicators::Minimum [−][src]
pub struct Minimum { /* fields omitted */ }
Expand description
Returns the lowest value in a given time frame.
Parameters
- period - size of the time frame (integer greater than 0). Default value is 14.
Example
use ta::indicators::Minimum; use ta::Next; let mut min = Minimum::new(3).unwrap(); assert_eq!(min.next(10.0), 10.0); assert_eq!(min.next(11.0), 10.0); assert_eq!(min.next(12.0), 10.0); assert_eq!(min.next(13.0), 11.0);
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Minimum
impl UnwindSafe for Minimum
Blanket Implementations
Mutably borrows from an owned value. Read more