Struct yata::indicators::IchimokuCloud [−][src]
pub struct IchimokuCloud { pub l1: PeriodType, pub l2: PeriodType, pub l3: PeriodType, pub m: PeriodType, pub source: Source, }
Expand description
Ichimoku cloud
Links
4 values
Tenkan Sen
Kijun Sen
Senkou Span A
Senkou Span B
Range of all the values is the same as the range of the source
values.
2 signals
-
When
Tenkan Sen
crossesKijun Sen
upwards andsource
value is greter than bothSenkou Span A and B
and whenSenkou Span A
is greter thanSenkou Span B
, returns full buy signal. WhenTenkan Sen
crossesKijun Sen
downwards andsource
value is lower than bothSenkou Span A and B
and whenSenkou Span A
is lower thanSenkou Span B
, returns full sell signal. -
When
source
value crossesKijun Sen
upwards andsource
value is greter than bothSenkou Span A and B
and whenSenkou Span A
is greter thanSenkou Span B
, returns full buy signal. Whensource
value crossesKijun Sen
downwards andsource
value is lower than bothSenkou Span A and B
and whenSenkou Span A
is lower thanSenkou Span B
, returns full sell signal.
Fields
l1: PeriodType
Tenkan Sen
period. Default is 9
.
Range in [1
; l2
).
l2: PeriodType
Kijun Sen
period. Default is 26
.
Range in (l1
; l3
).
l3: PeriodType
Senkou Span B period. Default is 52
.
Range in (l2
; PeriodType::MAX
).
m: PeriodType
Move Senkou Span A and B
forward by this period. Default is 26
.
Range in [1
; PeriodType::MAX
).
source: Source
Source 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 = IchimokuCloudInstance
type Instance = IchimokuCloudInstance
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 IchimokuCloud
impl Send for IchimokuCloud
impl Sync for IchimokuCloud
impl Unpin for IchimokuCloud
impl UnwindSafe for IchimokuCloud
Blanket Implementations
Mutably borrows from an owned value. Read more