Struct yata::indicators::HullMovingAverage [−][src]
pub struct HullMovingAverage { pub period: PeriodType, pub left: PeriodType, pub right: PeriodType, pub source: Source, }
Expand description
Fields
period: PeriodType
HMA period. Default is 9
.
Range in [3
; PeriodType::MAX
).
left: PeriodType
Left lag for reverse point detection. Default is 3
.
Range in [1
; PeriodType::MAX
/2
]
right: PeriodType
Right lag for reverse point detection. Default is 2
.
Range in [1
; PeriodType::MAX
/2
].
source: Source
Source type of values. 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 = HullMovingAverageInstance
type Instance = HullMovingAverageInstance
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 HullMovingAverage
impl Send for HullMovingAverage
impl Sync for HullMovingAverage
impl Unpin for HullMovingAverage
impl UnwindSafe for HullMovingAverage
Blanket Implementations
Mutably borrows from an owned value. Read more