Struct yata::indicators::EaseOfMovement [−][src]
pub struct EaseOfMovement { pub period1: PeriodType, pub period2: PeriodType, pub method: RegularMethods, }
Expand description
Ease Of Movement
Links
- https://en.wikipedia.org/wiki/Ease_of_movement
- https://www.investopedia.com/terms/e/easeofmovement.asp
1 value
- Main value
Range in (-inf
; +inf
)
1 signal
- Signal 1 appears when
main value
crosses zero line. Whenmain value
crosses zero line upwards, returns full buy signal. Whenmain value
crosses zero line downwards, returns full sell signal.
Fields
period1: PeriodType
MA period length (using method
). Default is 13
.
Range in [2
; PeriodType::MAX
).
period2: PeriodType
Differencial period size. Default is 1
.
Range in [1
; PeriodType::MAX
].
method: RegularMethods
MA type (using period1
). Default is SMA
.
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 = EaseOfMovementInstance
type Instance = EaseOfMovementInstance
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 EaseOfMovement
impl Send for EaseOfMovement
impl Sync for EaseOfMovement
impl Unpin for EaseOfMovement
impl UnwindSafe for EaseOfMovement
Blanket Implementations
Mutably borrows from an owned value. Read more