Struct yata::indicators::Aroon [−][src]
pub struct Aroon {
pub period: PeriodType,
pub signal_zone: ValueType,
pub over_zone_period: PeriodType,
}
Expand description
Aroon indicator
Links
2 values
AroonUp
Range in [0.0
; 1.0
]
AroonDown
Range in [0.0
; 1.0
]
3 signals
- When
AroonUp
crossesAroonDown
upwards, gives full positive #0 signal. WhenAroonDown
crossesAroonUp
upwards, gives full negative #0 signal. Otherwise gives no #0 signal. - When
AroonUp
rises up to 1.0, gives full positive #1 signal. WhenAroonDown
rises up to 1.0, gives full negative #1 signal. - Gives positive #2 signal when
AroonUp
stays above(1.0-signal_zone)
andAroonDown
stays undersignal_zone
. Gives negative #2 signal whenAroonDown
stays above(1.0-signal_zone)
andAroonUp
stays undersignal_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
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 = AroonInstance
type Instance = AroonInstance
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 Aroon
impl UnwindSafe for Aroon
Blanket Implementations
Mutably borrows from an owned value. Read more