Struct yata::indicators::FisherTransform[][src]

pub struct FisherTransform<M: MovingAverageConstructor = MA> {
    pub period1: PeriodType,
    pub zone: ValueType,
    pub signal: M,
    pub source: Source,
}
Expand description

Fisher transform

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. When main value changes direction, returns signal corresponds to relative position of main value in zone
  • Signal 2 appears when main value crosses signal line and after signal 1 appears

Fields

period1: PeriodType

Main period for max/min values calculation. Default is 9.

Range in [2; PeriodType::MAX).

zone: ValueType

Zone size for signals. Default is 1.5.

Range in (0.0; +inf)

signal: M

Signal line moving average type.

Default is SMA(2).

Period range in [2; PeriodType::MAX).

source: Source

Source type of values. Default is TP

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Type of State

Name of an indicator

Initializes the State based on current Configuration

Validates if Configuration is OK

Dynamically sets Configuration parameters

Returns an IndicatorResult size processing by the indicator (count of raw values, count of signals)

Returns a name of the indicator

Creates an IndicatorInstance function from this IndicatorConfig.

Evaluates indicator config over sequence of OHLC and returns sequence of IndicatorResults Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.