pub struct ADXOutput {
pub adx: f64,
pub plus_di: f64,
pub minus_di: f64,
pub dx: f64,
pub true_range: f64,
pub trend_strength: TrendStrength,
pub trend_direction: TrendDirection,
pub di_spread: f64,
}Expand description
Output from ADX calculation
Fields§
§adx: f64Average Directional Index (trend strength)
plus_di: f64Plus Directional Indicator
minus_di: f64Minus Directional Indicator
dx: f64Directional Index (|+DI - -DI| / (+DI + -DI) * 100)
true_range: f64True Range for current period
trend_strength: TrendStrengthTrend strength classification
trend_direction: TrendDirectionTrend direction based on DI comparison
di_spread: f64DI spread (+DI - -DI)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ADXOutput
impl<'de> Deserialize<'de> for ADXOutput
Source§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
impl Copy for ADXOutput
impl StructuralPartialEq for ADXOutput
Auto Trait Implementations§
impl Freeze for ADXOutput
impl RefUnwindSafe for ADXOutput
impl Send for ADXOutput
impl Sync for ADXOutput
impl Unpin for ADXOutput
impl UnwindSafe for ADXOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more