Struct yata::indicators::SMIErgodicIndicator [−][src]
pub struct SMIErgodicIndicator { pub period1: PeriodType, pub period2: PeriodType, pub period3: PeriodType, pub method: RegularMethods, 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
].
period3: PeriodType
Signal line MA period. Default is 5
.
Range in [2
, PeriodType::MAX
).
method: RegularMethods
Signal line MA method. Default is EMA
.
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
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 = SMIErgodicIndicatorInstance
type Instance = SMIErgodicIndicatorInstance
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 SMIErgodicIndicator
impl Send for SMIErgodicIndicator
impl Sync for SMIErgodicIndicator
impl Unpin for SMIErgodicIndicator
impl UnwindSafe for SMIErgodicIndicator
Blanket Implementations
Mutably borrows from an owned value. Read more