Struct yata::indicators::ChaikinOscillator [−][src]
pub struct ChaikinOscillator<M: MovingAverageConstructor = MA> {
pub ma1: M,
pub ma2: M,
pub window: PeriodType,
}
Expand description
Fields
ma1: M
ma2: M
window: PeriodType
AD index size. Default is 0 (windowless)
Range in [0
; PeriodType::MAX
]
Trait Implementations
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for ChaikinOscillator<M> where
M: Deserialize<'de>,
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for ChaikinOscillator<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 = ChaikinOscillatorInstance<M>
type Instance = ChaikinOscillatorInstance<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 ChaikinOscillator<M> where
M: RefUnwindSafe,
impl<M> Send for ChaikinOscillator<M> where
M: Send,
impl<M> Sync for ChaikinOscillator<M> where
M: Sync,
impl<M> Unpin for ChaikinOscillator<M> where
M: Unpin,
impl<M> UnwindSafe for ChaikinOscillator<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more