Struct yata::indicators::WoodiesCCI [−][src]
pub struct WoodiesCCI { pub period1: PeriodType, pub period2: PeriodType, pub s1_lag: PeriodType, pub source: Source, }
Expand description
Woodies Commodity Channel Index
Links
- https://tlc.thinkorswim.com/center/reference/Tech-Indicators/studies-library/V-Z/WoodiesCCI.html
- https://ftmo.com/en/woodies-cci-system/
2 values
Turbo CCI
value
Range in (-inf
; +inf
)
Trend CCI
value
Range in (-inf
; +inf
)
1 signals
- When
Trend CCI
stays above zero line fors1_lag
bars, returns full buy signal. WhenTrend CCI
stays below zero line fors1_lag
bars, returns full sell signal. Otherwise returns no signal.
Fields
period1: PeriodType
Turbo
CCI period
period2: PeriodType
Trend
CCI period
s1_lag: PeriodType
Signal #1 bars count to occur
source: Source
Source type of values. 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 = WoodiesCCIInstance
type Instance = WoodiesCCIInstance
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 WoodiesCCI
impl Send for WoodiesCCI
impl Sync for WoodiesCCI
impl Unpin for WoodiesCCI
impl UnwindSafe for WoodiesCCI
Blanket Implementations
Mutably borrows from an owned value. Read more