Struct yata::indicators::KlingerVolumeOscillator [−][src]
pub struct KlingerVolumeOscillator<M: MovingAverageConstructor = MA> {
pub ma1: M,
pub ma2: M,
pub signal: M,
}
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
ma1: M
ma2: M
signal: M
Trait Implementations
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for KlingerVolumeOscillator<M> where
M: Deserialize<'de>,
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for KlingerVolumeOscillator<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 = KlingerVolumeOscillatorInstance<M>
type Instance = KlingerVolumeOscillatorInstance<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 KlingerVolumeOscillator<M> where
M: RefUnwindSafe,
impl<M> Send for KlingerVolumeOscillator<M> where
M: Send,
impl<M> Sync for KlingerVolumeOscillator<M> where
M: Sync,
impl<M> Unpin for KlingerVolumeOscillator<M> where
M: Unpin,
impl<M> UnwindSafe for KlingerVolumeOscillator<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more