Struct yata::indicators::KeltnerChannel [−][src]
pub struct KeltnerChannel { pub period: PeriodType, pub method: RegularMethods, 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
period: PeriodType
Period for the middle moving average. Default is 20
.
Range in [2
; PeriodType::MAX
)
method: RegularMethods
Middle moving average type. Default is EMA
.
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
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 = KeltnerChannelInstance
type Instance = KeltnerChannelInstance
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 KeltnerChannel
impl Send for KeltnerChannel
impl Sync for KeltnerChannel
impl Unpin for KeltnerChannel
impl UnwindSafe for KeltnerChannel
Blanket Implementations
Mutably borrows from an owned value. Read more