pub enum FormationKind {
Show 16 variants
BullFlag,
BearFlag,
BullPennant,
BearPennant,
Rectangle,
AscendingTriangle,
DescendingTriangle,
SymmetricalTriangle,
CupAndHandle,
InvertedCupAndHandle,
DoubleTop,
DoubleBottom,
TripleTop,
TripleBottom,
HeadAndShoulders,
InverseHeadAndShoulders,
}Expand description
The formation a detector looks for.
Variants§
BullFlag
A rise, then a falling channel; confirms above it.
BearFlag
A fall, then a rising channel; confirms below it.
BullPennant
A rise, then converging lines; confirms above them.
BearPennant
A fall, then converging lines; confirms below them.
Rectangle
Flat highs over flat lows; confirms in the direction of the break.
AscendingTriangle
Flat highs over rising lows; confirms above.
DescendingTriangle
Falling highs over flat lows; confirms below.
SymmetricalTriangle
Falling highs over rising lows; confirms in the direction of the break.
CupAndHandle
A rounded fall and recovery to the same level, a small pullback, then a break above the rim.
InvertedCupAndHandle
The mirror image: a rounded rise and return, a small bounce, then a break below the rim.
DoubleTop
Two tops at the same level; confirms below the valley between them.
DoubleBottom
Two bottoms at the same level; confirms above the peak between them.
TripleTop
Three tops at the same level; confirms below the lower valley.
TripleBottom
Three bottoms at the same level; confirms above the higher peak.
HeadAndShoulders
A head above two shoulders; confirms below the neckline through the valleys.
InverseHeadAndShoulders
A head below two shoulders; confirms above the neckline through the peaks.
Trait Implementations§
Source§impl Clone for FormationKind
impl Clone for FormationKind
Source§fn clone(&self) -> FormationKind
fn clone(&self) -> FormationKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FormationKind
Source§impl Debug for FormationKind
impl Debug for FormationKind
impl Eq for FormationKind
Source§impl PartialEq for FormationKind
impl PartialEq for FormationKind
impl StructuralPartialEq for FormationKind
Auto Trait Implementations§
impl Freeze for FormationKind
impl RefUnwindSafe for FormationKind
impl Send for FormationKind
impl Sync for FormationKind
impl Unpin for FormationKind
impl UnsafeUnpin for FormationKind
impl UnwindSafe for FormationKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more