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 greater than bothSenkou Span A and B
and whenSenkou Span A
is greater 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 greater than bothSenkou Span A and B
and whenSenkou Span A
is greater 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§
Source§impl Clone for IchimokuCloud
impl Clone for IchimokuCloud
Source§fn clone(&self) -> IchimokuCloud
fn clone(&self) -> IchimokuCloud
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IchimokuCloud
impl Debug for IchimokuCloud
Source§impl Default for IchimokuCloud
impl Default for IchimokuCloud
Source§impl<'de> Deserialize<'de> for IchimokuCloud
impl<'de> Deserialize<'de> for IchimokuCloud
Source§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>,
Source§impl IndicatorConfig for IchimokuCloud
impl IndicatorConfig for IchimokuCloud
Source§type Instance = IchimokuCloudInstance
type Instance = IchimokuCloudInstance
Source§fn init<T: OHLCV>(self, candle: &T) -> Result<Self::Instance, Error>
fn init<T: OHLCV>(self, candle: &T) -> Result<Self::Instance, Error>
Source§fn set(&mut self, name: &str, value: String) -> Result<(), Error>
fn set(&mut self, name: &str, value: String) -> Result<(), Error>
Source§fn size(&self) -> (u8, u8)
fn size(&self) -> (u8, u8)
IndicatorResult
size processing by the indicator (count of raw values, count of signals)
Source§impl Serialize for IchimokuCloud
impl Serialize for IchimokuCloud
impl Copy for IchimokuCloud
Auto Trait Implementations§
impl Freeze for IchimokuCloud
impl RefUnwindSafe for IchimokuCloud
impl Send for IchimokuCloud
impl Sync for IchimokuCloud
impl Unpin for IchimokuCloud
impl UnwindSafe for IchimokuCloud
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, I, C> IndicatorConfigDyn<T> for Cwhere
T: OHLCV,
I: IndicatorInstanceDyn<T> + IndicatorInstance<Config = C> + 'static,
C: IndicatorConfig<Instance = I> + Clone + 'static,
impl<T, I, C> IndicatorConfigDyn<T> for Cwhere
T: OHLCV,
I: IndicatorInstanceDyn<T> + IndicatorInstance<Config = C> + 'static,
C: IndicatorConfig<Instance = I> + Clone + 'static,
Source§fn init(
&self,
initial_value: &T,
) -> Result<Box<dyn IndicatorInstanceDyn<T>>, Error>
fn init( &self, initial_value: &T, ) -> Result<Box<dyn IndicatorInstanceDyn<T>>, Error>
Source§fn over(&self, inputs: &dyn AsRef<[T]>) -> Result<Vec<IndicatorResult>, Error>
fn over(&self, inputs: &dyn AsRef<[T]>) -> Result<Vec<IndicatorResult>, Error>
IndicatorConfig
over series of OHLC and returns series of IndicatorResult
s Read more