IndicatorsSummary

Struct IndicatorsSummary 

Source
pub struct IndicatorsSummary {
Show 52 fields pub sma_10: Option<f64>, pub sma_20: Option<f64>, pub sma_50: Option<f64>, pub sma_100: Option<f64>, pub sma_200: Option<f64>, pub ema_10: Option<f64>, pub ema_20: Option<f64>, pub ema_50: Option<f64>, pub ema_100: Option<f64>, pub ema_200: Option<f64>, pub wma_10: Option<f64>, pub wma_20: Option<f64>, pub wma_50: Option<f64>, pub wma_100: Option<f64>, pub wma_200: Option<f64>, pub dema_20: Option<f64>, pub tema_20: Option<f64>, pub hma_20: Option<f64>, pub vwma_20: Option<f64>, pub alma_9: Option<f64>, pub mcginley_dynamic_20: Option<f64>, pub rsi_14: Option<f64>, pub stochastic: Option<StochasticData>, pub cci_20: Option<f64>, pub williams_r_14: Option<f64>, pub stochastic_rsi: Option<StochasticData>, pub roc_12: Option<f64>, pub momentum_10: Option<f64>, pub cmo_14: Option<f64>, pub awesome_oscillator: Option<f64>, pub coppock_curve: Option<f64>, pub macd: Option<MacdData>, pub adx_14: Option<f64>, pub aroon: Option<AroonData>, pub supertrend: Option<SuperTrendData>, pub ichimoku: Option<IchimokuData>, pub parabolic_sar: Option<f64>, pub bull_bear_power: Option<BullBearPowerData>, pub elder_ray_index: Option<ElderRayData>, pub bollinger_bands: Option<BollingerBandsData>, pub atr_14: Option<f64>, pub keltner_channels: Option<KeltnerChannelsData>, pub donchian_channels: Option<DonchianChannelsData>, pub true_range: Option<f64>, pub choppiness_index_14: Option<f64>, pub obv: Option<f64>, pub mfi_14: Option<f64>, pub cmf_20: Option<f64>, pub chaikin_oscillator: Option<f64>, pub accumulation_distribution: Option<f64>, pub vwap: Option<f64>, pub balance_of_power: Option<f64>,
}
Expand description

Summary of all calculated technical indicators

Fields§

§sma_10: Option<f64>

Simple Moving Average (10-period)

§sma_20: Option<f64>

Simple Moving Average (20-period)

§sma_50: Option<f64>

Simple Moving Average (50-period)

§sma_100: Option<f64>

Simple Moving Average (100-period)

§sma_200: Option<f64>

Simple Moving Average (200-period)

§ema_10: Option<f64>

Exponential Moving Average (10-period)

§ema_20: Option<f64>

Exponential Moving Average (20-period)

§ema_50: Option<f64>

Exponential Moving Average (50-period)

§ema_100: Option<f64>

Exponential Moving Average (100-period)

§ema_200: Option<f64>

Exponential Moving Average (200-period)

§wma_10: Option<f64>

Weighted Moving Average (10-period)

§wma_20: Option<f64>

Weighted Moving Average (20-period)

§wma_50: Option<f64>

Weighted Moving Average (50-period)

§wma_100: Option<f64>

Weighted Moving Average (100-period)

§wma_200: Option<f64>

Weighted Moving Average (200-period)

§dema_20: Option<f64>

Double Exponential Moving Average (20-period)

§tema_20: Option<f64>

Triple Exponential Moving Average (20-period)

§hma_20: Option<f64>

Hull Moving Average (20-period)

§vwma_20: Option<f64>

Volume Weighted Moving Average (20-period)

§alma_9: Option<f64>

Arnaud Legoux Moving Average (9-period)

§mcginley_dynamic_20: Option<f64>

McGinley Dynamic (20-period)

§rsi_14: Option<f64>

Relative Strength Index (14-period)

§stochastic: Option<StochasticData>

Stochastic Oscillator (14, 3, 3)

§cci_20: Option<f64>

Commodity Channel Index (20-period)

§williams_r_14: Option<f64>

Williams %R (14-period)

§stochastic_rsi: Option<StochasticData>

Stochastic RSI (14, 14)

§roc_12: Option<f64>

Rate of Change (12-period)

§momentum_10: Option<f64>

Momentum (10-period)

§cmo_14: Option<f64>

Chande Momentum Oscillator (14-period)

§awesome_oscillator: Option<f64>

Awesome Oscillator (5, 34)

§coppock_curve: Option<f64>

Coppock Curve (10, 11, 14)

§macd: Option<MacdData>

Moving Average Convergence Divergence (12, 26, 9)

§adx_14: Option<f64>

Average Directional Index (14-period)

§aroon: Option<AroonData>

Aroon Indicator (25-period)

§supertrend: Option<SuperTrendData>

SuperTrend Indicator (10, 3.0)

§ichimoku: Option<IchimokuData>

Ichimoku Cloud (9, 26, 52, 26)

§parabolic_sar: Option<f64>

Parabolic SAR (0.02, 0.2)

§bull_bear_power: Option<BullBearPowerData>

Bull Bear Power (13-period EMA based)

§elder_ray_index: Option<ElderRayData>

Elder Ray Index (13-period EMA based)

§bollinger_bands: Option<BollingerBandsData>

Bollinger Bands (20, 2.0)

§atr_14: Option<f64>

Average True Range (14-period)

§keltner_channels: Option<KeltnerChannelsData>

Keltner Channels (20, 10, 2.0)

§donchian_channels: Option<DonchianChannelsData>

Donchian Channels (20-period)

§true_range: Option<f64>

True Range (current period)

§choppiness_index_14: Option<f64>

Choppiness Index (14-period)

§obv: Option<f64>

On-Balance Volume

§mfi_14: Option<f64>

Money Flow Index (14-period)

§cmf_20: Option<f64>

Chaikin Money Flow (20-period)

§chaikin_oscillator: Option<f64>

Chaikin Oscillator (3, 10)

§accumulation_distribution: Option<f64>

Accumulation/Distribution Line

§vwap: Option<f64>

Volume Weighted Average Price

§balance_of_power: Option<f64>

Balance of Power

Implementations§

Source§

impl IndicatorsSummary

Source

pub fn to_dataframe(&self) -> PolarsResult<DataFrame>

Converts this struct to a single-row polars DataFrame.

All scalar fields are included as columns. Nested objects and complex types are excluded.

This method is auto-generated by the ToDataFrame derive macro.

Source

pub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>

Converts a slice of structs to a multi-row polars DataFrame.

All scalar fields are included as columns. Nested objects and complex types are excluded.

This method is auto-generated by the ToDataFrame derive macro.

Trait Implementations§

Source§

impl Clone for IndicatorsSummary

Source§

fn clone(&self) -> IndicatorsSummary

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IndicatorsSummary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for IndicatorsSummary

Source§

fn default() -> IndicatorsSummary

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for IndicatorsSummary

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for IndicatorsSummary

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Key for T
where T: Clone,

Source§

fn align() -> usize

The alignment necessary for the key. Must return a power of two.
Source§

fn size(&self) -> usize

The size of the key in bytes.
Source§

unsafe fn init(&self, ptr: *mut u8)

Initialize the key in the given memory location. Read more
Source§

unsafe fn get<'a>(ptr: *const u8) -> &'a T

Get a reference to the key from the given memory location. Read more
Source§

unsafe fn drop_in_place(ptr: *mut u8)

Drop the key in place. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> PlanCallbackArgs for T

Source§

impl<T> PlanCallbackOut for T