Struct yata::indicators::SMIErgodicIndicator [−][src]
pub struct SMIErgodicIndicator<M: MovingAverageConstructor = MA> {
pub period1: PeriodType,
pub period2: PeriodType,
pub signal: M,
pub zone: ValueType,
pub source: Source,
}
Expand description
SMI Ergodic Indicator
Links
- http://www.motivewave.com/studies/smi_ergodic_indicator.htm
- https://en.wikipedia.org/wiki/Ergodic_theory
3 value
SMI
main value
Range in [-1.0
; 1.0
]
Signal line
value
Range in [-1.0
; 1.0
]
Oscillator
value
Range in [-2.0
; 2.0
]
1 signals
- Signal #1 on
SMI
crossesSignal
When Signal line
value is below -zone
and SMI
value crosses Signal line
upwards, returns full buy signal.
When Signal line
value is above +zone
and SMI
value crosses Signal line
downwards, returns full sell signal.
Otherwise returns no signal.
Fields
period1: PeriodType
Long TSI period. Default is 20
.
Range in [period2
, PeriodType::MAX
).
period2: PeriodType
Short TSI period. Default is 5
.
Range in (2
, period1
].
signal: M
zone: ValueType
Signal zone size. Default is 0.2
.
Range in [0.0
; 1.0
]
source: Source
Source type of values. Default is Close
Trait Implementations
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for SMIErgodicIndicator<M> where
M: Deserialize<'de>,
impl<'de, M: MovingAverageConstructor> Deserialize<'de> for SMIErgodicIndicator<M> where
M: Deserialize<'de>,
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>,
Deserialize this value from the given Serde deserializer. Read more
type Instance = SMIErgodicIndicatorInstance<M>
type Instance = SMIErgodicIndicatorInstance<M>
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<M> RefUnwindSafe for SMIErgodicIndicator<M> where
M: RefUnwindSafe,
impl<M> Send for SMIErgodicIndicator<M> where
M: Send,
impl<M> Sync for SMIErgodicIndicator<M> where
M: Sync,
impl<M> Unpin for SMIErgodicIndicator<M> where
M: Unpin,
impl<M> UnwindSafe for SMIErgodicIndicator<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more