[−][src]Enum cxmr_ta::Indicator
Operation is technical analysis or orderbook method.
Variants
Average true range (ATR).
Kaufman's Efficiency Ratio (ER).
An exponential moving average (EMA), also known as an exponentially weighted moving average (EWMA).
Fast stochastic oscillator.
Returns the highest value in a given time frame.
Returns the lowest value in a given time frame.
Money Flow Index (MFI).
On Balance Volume (OBV).
Rate of Change (ROC)
The relative strength index (RSI).
Simple moving average (SMA).
Slow stochastic oscillator.
The range of a day's trading is simply high - low. The true range extends it to yesterday's closing price if it was outside of today's range.
Spread in the orderbook.
Moving average converge divergence (MACD).
Closing price.
Ask rate in the orderbook.
Bid rate in the orderbook.
Market entry rate.
Market exit rate.
Methods
impl Indicator
[src]
pub fn parameters(&self) -> usize
[src]
Returns amount of expected parameters.
pub fn descriptors(&self) -> Option<&'static [ParamDescriptor]>
[src]
Returns descriptors of expected parameters.
It can be None
if doesn't expect any arguments
pub fn construct<S: State>(
&self,
params: Option<&Params>
) -> Result<BoxIndicator<S>, Error>
[src]
&self,
params: Option<&Params>
) -> Result<BoxIndicator<S>, Error>
Constructs technical analysis operator using parameters. Returns error only if amount of parameters is wrong.
pub fn into_op(self) -> Result<Operation, Error>
[src]
Constructs indicator operation with params.
pub fn with_params(self, params: Params) -> Result<Operation, Error>
[src]
Constructs indicator operation with params.
Trait Implementations
impl Clone for Indicator
[src]
impl Copy for Indicator
[src]
impl Debug for Indicator
[src]
impl<'de> Deserialize<'de> for Indicator
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Indicator
[src]
impl<'_> From<&'_ Indicator> for Marker
[src]
impl FromStr for Indicator
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Indicator
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Indicator
[src]
fn cmp(&self, other: &Indicator) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Indicator> for Indicator
[src]
impl PartialOrd<Indicator> for Indicator
[src]
fn partial_cmp(&self, other: &Indicator) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Indicator
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Indicator
[src]
impl StructuralPartialEq for Indicator
[src]
Auto Trait Implementations
impl RefUnwindSafe for Indicator
impl Send for Indicator
impl Sync for Indicator
impl Unpin for Indicator
impl UnwindSafe for Indicator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,