pub struct TtmSqueezeOutput {
pub squeeze: f64,
pub momentum: f64,
}Expand description
TTM Squeeze output.
Fields§
§squeeze: f641.0 while the squeeze is on (Bollinger Bands sit inside the Keltner
Channel), 0.0 otherwise. The squeeze releases — the signal flips back
to 0.0 — when volatility expands and BB pierce KC.
momentum: f64Detrended momentum: linear-regression endpoint of
close − (midpoint(highest_high, lowest_low, period) + SMA(close, period)) / 2.
Histogram-like reading that swings positive in a breakout up, negative
in a breakout down; trade direction on the squeeze release follows the
sign of momentum.
Trait Implementations§
Source§impl Clone for TtmSqueezeOutput
impl Clone for TtmSqueezeOutput
Source§fn clone(&self) -> TtmSqueezeOutput
fn clone(&self) -> TtmSqueezeOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TtmSqueezeOutput
impl Debug for TtmSqueezeOutput
Source§impl PartialEq for TtmSqueezeOutput
impl PartialEq for TtmSqueezeOutput
Source§fn eq(&self, other: &TtmSqueezeOutput) -> bool
fn eq(&self, other: &TtmSqueezeOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TtmSqueezeOutput
impl StructuralPartialEq for TtmSqueezeOutput
Auto Trait Implementations§
impl Freeze for TtmSqueezeOutput
impl RefUnwindSafe for TtmSqueezeOutput
impl Send for TtmSqueezeOutput
impl Sync for TtmSqueezeOutput
impl Unpin for TtmSqueezeOutput
impl UnsafeUnpin for TtmSqueezeOutput
impl UnwindSafe for TtmSqueezeOutput
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