Struct yata::indicators::AwesomeOscillator [−][src]
pub struct AwesomeOscillator { pub period1: PeriodType, pub period2: PeriodType, pub method: RegularMethods, pub source: Source, pub left: PeriodType, pub right: PeriodType, pub conseq_peaks: u8, }
Expand description
Awesome Oscillator
Links
1 value
- Absolute difference between fast and slow periods MA
Range in (-inf
; +inf
)
2 signals
- “Twin Peaks”. When
value
is below zero line and we gotconseq_peaks
lower peaks, then returns full positive signal Whenvalue
is above zero line and we gotconseq_peaks
higher peaks, then returns full negative signal. Otherwise gives no signal. - Gives signal when
values
crosses zero line
Fields
period1: PeriodType
Default is 34
.
Range in (period2
; PeriodType::MAX
).
period2: PeriodType
Default is 5
.
Range in [3
; period1
).
method: RegularMethods
Default is SMA
.
source: Source
Default is HL2
.
left: PeriodType
Default is 1
.
Range in [1
; PeriodType::MAX
-right
).
right: PeriodType
Default is 1
.
Range in [1
; PeriodType::MAX
-left
).
conseq_peaks: u8
Default is 2
.
Range in [1
; PeriodType::MAX
].
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
type Instance = AwesomeOscillatorInstance
type Instance = AwesomeOscillatorInstance
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 RefUnwindSafe for AwesomeOscillator
impl Send for AwesomeOscillator
impl Sync for AwesomeOscillator
impl Unpin for AwesomeOscillator
impl UnwindSafe for AwesomeOscillator
Blanket Implementations
Mutably borrows from an owned value. Read more