Struct yata::indicators::KlingerVolumeOscillator [−][src]
pub struct KlingerVolumeOscillator { pub period1: PeriodType, pub period2: PeriodType, pub period3: PeriodType, pub method1: RegularMethods, pub method2: RegularMethods, }
Expand description
Klinger Volume Oscillator
Links
- https://en.wikipedia.org/wiki/Volume_analysis#Klinger_Volume_Oscillator
- https://www.investopedia.com/terms/k/klingeroscillator.asp
2 values
main
value
Range in (-inf
; +inf
)
signal line
value
Range in (-inf
; +inf
)
2 signals
-
When
main
value crosses0.0
upwards, then returns full buy signal. Whenmain
value crosses0.0
downwards, then returns full sell signal. Otherwise returns no signal. -
When
main
value crossessignal line
value upwards, then returns full buy signal. Whenmain
value crossessignal line
downwards, then returns full sell signal. Otherwise returns no signal.
Fields
period1: PeriodType
Fast moving average period. Default is 34
.
period2: PeriodType
Slow moving average period. Default is 55
.
period3: PeriodType
Signal line moving average period. Default is 13
.
method1: RegularMethods
Fast and slow moving averages method. Default is EMA
.
method2: RegularMethods
Signal line moving average method. Default is EMA
.
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 = KlingerVolumeOscillatorInstance
type Instance = KlingerVolumeOscillatorInstance
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 KlingerVolumeOscillator
impl Send for KlingerVolumeOscillator
impl Sync for KlingerVolumeOscillator
impl Unpin for KlingerVolumeOscillator
impl UnwindSafe for KlingerVolumeOscillator
Blanket Implementations
Mutably borrows from an owned value. Read more