Struct ta::indicators::Maximum [−][src]
pub struct Maximum { /* fields omitted */ }
Expand description
Returns the highest 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::Maximum; use ta::Next; let mut max = Maximum::new(3).unwrap(); assert_eq!(max.next(7.0), 7.0); assert_eq!(max.next(5.0), 7.0); assert_eq!(max.next(4.0), 7.0); assert_eq!(max.next(4.0), 5.0); assert_eq!(max.next(8.0), 8.0);
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Maximum
impl UnwindSafe for Maximum
Blanket Implementations
Mutably borrows from an owned value. Read more