Struct yata::indicators::PivotReversalStrategy [−][src]
pub struct PivotReversalStrategy {
pub left: PeriodType,
pub right: PeriodType,
}
Expand description
Fields
left: PeriodType
How many periods should left before pivot point.
Range in [1
; PeriodType::MAX
-right
).
right: PeriodType
How many periods should appear after pivot point.
Range in [1
; PeriodType::MAX
-left
).
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
type Instance = PivotReversalStrategyInstance
type Instance = PivotReversalStrategyInstance
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 PivotReversalStrategy
impl Send for PivotReversalStrategy
impl Sync for PivotReversalStrategy
impl Unpin for PivotReversalStrategy
impl UnwindSafe for PivotReversalStrategy
Blanket Implementations
Mutably borrows from an owned value. Read more