Struct yata::indicators::FisherTransform [−][src]
pub struct FisherTransform { pub period1: PeriodType, pub period2: PeriodType, pub zone: ValueType, pub method: RegularMethods, pub source: Source, }
Expand description
Fisher transform
Links
- https://en.wikipedia.org/wiki/Fisher_transformation
- https://www.investopedia.com/terms/f/fisher-transform.asp
2 values
- FT
main value
Range in (-inf
; +inf
).
signal value
line
Range in (-inf
; +inf
).
2 signals
- Signal 1 appears when
main value
crosses zero line. Whenmain value
changes direction, returns signal corresponds to relative position ofmain value
inzone
- Signal 2 appears when
main value
crossessignal line
and after signal 1 appears
Fields
period1: PeriodType
Main period for max/min values calculation. Default is 9
.
Range in [2
; PeriodType::MAX
).
period2: PeriodType
Signal value MA period. Default is 2
.
Range in [2
; PeriodType::MAX
).
zone: ValueType
Zone size for signals. Default is 1.5
.
Range in (0.0
; +inf
)
method: RegularMethods
Signal value MA type. Default is SMA
.
source: Source
Source type of values. Default is TP
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 = FisherTransformInstance
type Instance = FisherTransformInstance
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 FisherTransform
impl Send for FisherTransform
impl Sync for FisherTransform
impl Unpin for FisherTransform
impl UnwindSafe for FisherTransform
Blanket Implementations
Mutably borrows from an owned value. Read more