Struct yata::indicators::ChandeKrollStop [−][src]
pub struct ChandeKrollStop { pub p: PeriodType, pub method: RegularMethods, pub x: ValueType, pub q: PeriodType, pub source: Source, }
Expand description
Chande Kroll Stop
Links
3 values
-
stop long
Range of values is the same as the range of thesource
values. -
source
value -
stop short
Range of values is the same as the range of the source
values.
2 signals
- signal 1 is calculated according to relative position of the
source
value betweenstop short
andstop long
values.
When source
value goes above stop short
, then returns full buy signal.
When source
value goes below stop long
, then returns full sell signal.
- signal 2 appears only when
stop long
crossesstop short
upwards.
When cumulative move of stop short
and stop long
is upwards, then returns full buy.
When cumulative move of stop short
and stop long
is downwards, then returns full sell.
Fields
p: PeriodType
ATR period length. Default is 10
.
Range in [1
; PeriodType::MAX
]
method: RegularMethods
ATR method. Default is SMA
.
x: ValueType
ATR multiplier. Default is 1.0
.
Range in [0
; +inf
)
q: PeriodType
multiplied highest/lowest period length. Default is 9
.
Range in [1
; PeriodType::MAX
]
source: Source
Price source. 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 = ChandeKrollStopInstance
type Instance = ChandeKrollStopInstance
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 ChandeKrollStop
impl Send for ChandeKrollStop
impl Sync for ChandeKrollStop
impl Unpin for ChandeKrollStop
impl UnwindSafe for ChandeKrollStop
Blanket Implementations
Mutably borrows from an owned value. Read more