pub struct LLV {
pub cached: Vec<f64>,
/* private fields */
}
Expand description
Returns the lowest value in a given time frame.
§Parameters
- n - size of the time frame (integer greater than 0). Default value is 14.
§Example
use quantaxis_rs::indicators::LLV;
use quantaxis_rs::Next;
let mut min = LLV::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);
Fields§
§cached: Vec<f64>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LLV
impl RefUnwindSafe for LLV
impl Send for LLV
impl Sync for LLV
impl Unpin for LLV
impl UnwindSafe for LLV
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