Struct yata::indicators::MoneyFlowIndex [−][src]
pub struct MoneyFlowIndex { pub period: PeriodType, pub zone: ValueType, }
Expand description
Money Flow Index
Links
3 values
upper bound
const value
Range in [0.5
; 1.0
]
MFI
value
Range in [0.0
; 1.0
]
lower bound
const value
Range in [0.0
; 0.5
]
2 signals
-
When
MFI
value crosseslower bound
downwards, returns full buy signal. WhenMFI
value crossesupper bound
upwards, returns full sell signal. Otherwise returns no signal. -
When
MFI
value crosseslower bound
upwards, returns full buy signal. WhenMFI
value crossesupper bound
downwards, returns full sell signal. Otherwise returns no signal.
Fields
period: PeriodType
Main period size. Default is 14
.
Range is [2
; PeriodType::MAX
).
zone: ValueType
Signal zone size. Default is 0.2
.
Range is [0.0
; 0.5
]. Value 0.5
means that the lower bound
is the same as the upper bound
.
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 = MoneyFlowIndexInstance
type Instance = MoneyFlowIndexInstance
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 MoneyFlowIndex
impl Send for MoneyFlowIndex
impl Sync for MoneyFlowIndex
impl Unpin for MoneyFlowIndex
impl UnwindSafe for MoneyFlowIndex
Blanket Implementations
Mutably borrows from an owned value. Read more