Struct yata::indicators::Aroon[][src]

pub struct Aroon {
    pub period: PeriodType,
    pub signal_zone: ValueType,
    pub over_zone_period: PeriodType,
}
Expand description

Aroon indicator

2 values

  • AroonUp

Range in [0.0; 1.0]

  • AroonDown

Range in [0.0; 1.0]

3 signals

  • When AroonUp crosses AroonDown upwards, gives full positive #0 signal. When AroonDown crosses AroonUp upwards, gives full negative #0 signal. Otherwise gives no #0 signal.
  • When AroonUp rises up to 1.0, gives full positive #1 signal. When AroonDown rises up to 1.0, gives full negative #1 signal.
  • Gives positive #2 signal when AroonUp stays above (1.0-signal_zone) and AroonDown stays under signal_zone. Gives negative #2 signal when AroonDown stays above (1.0-signal_zone) and AroonUp stays under signal_zone.

Fields

period: PeriodType

main period length. Default is 14.

Range in [2; PeriodType::MAX)

signal_zone: ValueType

zone value determines when signal #2 appears. Default is 0.3.

Range in [0.0; 1.0]

over_zone_period: PeriodType

period until signal #2 appears in full strength. Default is 7.

Range in [1; PeriodType::MAX)

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)

recently added

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.