pub struct NodeSensitivity {
pub smoothing: u32,
pub prominence: f64,
}Expand description
How studies::TradeProfile::nodes (requires studies) chooses volume nodes.
The default compares each price row with its immediate neighbours, which is the most
sensitive setting. Raising smoothing or prominence leaves only the broader nodes.
Fields§
§smoothing: u32Rows on each side of a row that are averaged with it before comparing; zero compares the rows as traded. Untraded rows count as zero volume.
prominence: f64Smallest rise of a peak above, or drop of a valley below, the higher respectively lower of its neighbouring plateaus, as a share of the largest smoothed volume. NaN counts as zero and values are clamped to 0..=1.
Trait Implementations§
Source§impl Clone for NodeSensitivity
impl Clone for NodeSensitivity
Source§fn clone(&self) -> NodeSensitivity
fn clone(&self) -> NodeSensitivity
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 moreimpl Copy for NodeSensitivity
Source§impl Debug for NodeSensitivity
impl Debug for NodeSensitivity
Source§impl Default for NodeSensitivity
impl Default for NodeSensitivity
Source§fn default() -> NodeSensitivity
fn default() -> NodeSensitivity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeSensitivity
impl<'de> Deserialize<'de> for NodeSensitivity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeSensitivity
impl PartialEq for NodeSensitivity
Source§impl Serialize for NodeSensitivity
impl Serialize for NodeSensitivity
impl StructuralPartialEq for NodeSensitivity
Auto Trait Implementations§
impl Freeze for NodeSensitivity
impl RefUnwindSafe for NodeSensitivity
impl Send for NodeSensitivity
impl Sync for NodeSensitivity
impl Unpin for NodeSensitivity
impl UnsafeUnpin for NodeSensitivity
impl UnwindSafe for NodeSensitivity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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