pub struct BearIthResult {
pub excess_gains: Vec<f64>,
pub excess_losses: Vec<f64>,
pub num_of_epochs: usize,
pub epochs: Vec<bool>,
pub intervals_cv: f64,
pub max_runup: f64,
}Expand description
Result of Bear ITH (short position) analysis within a bar.
Bear ITH is the INVERSE of Bull ITH for short positions. Epochs trigger when gains (from price drops) exceed losses AND exceed TMAEG.
Fields§
§excess_gains: Vec<f64>Excess gains at each time point (from price drops).
excess_losses: Vec<f64>Excess losses at each time point (runups).
num_of_epochs: usizeNumber of bear epochs detected.
epochs: Vec<bool>Boolean array marking epoch points.
intervals_cv: f64Coefficient of variation of epoch intervals.
max_runup: f64Maximum runup observed (adverse for shorts).
Trait Implementations§
Source§impl Clone for BearIthResult
impl Clone for BearIthResult
Source§fn clone(&self) -> BearIthResult
fn clone(&self) -> BearIthResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BearIthResult
impl Debug for BearIthResult
Source§impl Default for BearIthResult
impl Default for BearIthResult
Source§fn default() -> BearIthResult
fn default() -> BearIthResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BearIthResult
impl RefUnwindSafe for BearIthResult
impl Send for BearIthResult
impl Sync for BearIthResult
impl Unpin for BearIthResult
impl UnsafeUnpin for BearIthResult
impl UnwindSafe for BearIthResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more