Struct yata::indicators::KeltnerChannel [−][src]
pub struct KeltnerChannel<M: MovingAverageConstructor = MA> {
pub ma: M,
pub sigma: ValueType,
pub source: Source,
}
Expand description
Keltner Channel
Links
3 values
upper bound
Range of values is the same as the range of the source
values.
source
valuelower bound
Range of values is the same as the range of the source
values.
1 signal
When source
value goes above the upper bound
, then returns full buy signal.
When source
value goes under the lower bound
, then returns full sell signal.
Otherwise returns no signal.
Fields
ma: M
sigma: ValueType
True range multiplier. Default is 1.0
.
Range in (0.0
; +inf
)
source: Source
Middle moving average source value type. Default is Close
Trait Implementations
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for KeltnerChannel<M> where
M: Deserialize<'de>,
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for KeltnerChannel<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 = KeltnerChannelInstance<M>
type Instance = KeltnerChannelInstance<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 KeltnerChannel<M> where
M: RefUnwindSafe,
impl<M> Send for KeltnerChannel<M> where
M: Send,
impl<M> Sync for KeltnerChannel<M> where
M: Sync,
impl<M> Unpin for KeltnerChannel<M> where
M: Unpin,
impl<M> UnwindSafe for KeltnerChannel<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more