Struct yata::indicators::EaseOfMovement [−][src]
pub struct EaseOfMovement<M: MovingAverageConstructor = MA> {
pub ma: M,
pub period2: PeriodType,
}
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
ma: M
period2: PeriodType
Differencial period size. Default is 1
.
Range in [1
; PeriodType::MAX
].
Trait Implementations
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for EaseOfMovement<M> where
M: Deserialize<'de>,
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for EaseOfMovement<M> where
M: Deserialize<'de>,
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
type Instance = EaseOfMovementInstance<M>
type Instance = EaseOfMovementInstance<M>
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<M> RefUnwindSafe for EaseOfMovement<M> where
M: RefUnwindSafe,
impl<M> Send for EaseOfMovement<M> where
M: Send,
impl<M> Sync for EaseOfMovement<M> where
M: Sync,
impl<M> Unpin for EaseOfMovement<M> where
M: Unpin,
impl<M> UnwindSafe for EaseOfMovement<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more