Struct yata::indicators::KnowSureThing[][src]

pub struct KnowSureThing {
    pub period1: PeriodType,
    pub period2: PeriodType,
    pub period3: PeriodType,
    pub period4: PeriodType,
    pub sma1: PeriodType,
    pub sma2: PeriodType,
    pub sma3: PeriodType,
    pub sma4: PeriodType,
    pub method1: RegularMethods,
    pub sma5: PeriodType,
    pub method2: RegularMethods,
}
Expand description

Know Sure Thing

2 values

  • KST value

Range in (-inf; +inf)

  • Sinal line value

Range in (-inf; +inf)

1 signal

  • When KST crosses Signal line upwards, returns full buy signal. When KST crosses Signal line downwards, returns full sell signal. Otherwise returns no signal.

Fields

period1: PeriodType

ROC1 period. Default is 10.

period2: PeriodType

ROC2 period. Default is 15.

period3: PeriodType

ROC3 period. Default is 20.

period4: PeriodType

ROC4 period. Default is 30.

sma1: PeriodType

ROC1 moving average period. Default is 10.

sma2: PeriodType

ROC2 moving average period. Default is 10.

sma3: PeriodType

ROC3 moving average period. Default is 10.

sma4: PeriodType

ROC4 moving average period. Default is 15.

method1: RegularMethods

ROCs lines moving average type. Defual is SMA.

sma5: PeriodType

Signal line moving average period. Default is 9.

method2: RegularMethods

Signal line moving average type. Defual is SMA.

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.