Struct yata::indicators::MomentumIndex [−][src]
pub struct MomentumIndex { pub period1: PeriodType, pub period2: PeriodType, pub source: Source, }
Expand description
Fields
period1: PeriodType
Slow momentum period. Default is 10
.
Range in (period2
; PeriodType::MAX
)
period2: PeriodType
Fast momentum period. Default is 1
.
Range in [1
; period1
)
source: Source
Source value type. Default is Close
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
type Instance = MomentumIndexInstance
type Instance = MomentumIndexInstance
Type of State
Initializes the State based on current Configuration
Dynamically sets Configuration parameters
Returns an IndicatorResult
size processing by the indicator (count of raw values, count of signals)
Creates an IndicatorInstance
function from this IndicatorConfig
.
Auto Trait Implementations
impl RefUnwindSafe for MomentumIndex
impl Send for MomentumIndex
impl Sync for MomentumIndex
impl Unpin for MomentumIndex
impl UnwindSafe for MomentumIndex
Blanket Implementations
Mutably borrows from an owned value. Read more