pub struct PivotPoints {
pub pp: Decimal,
pub r1: Decimal,
pub s1: Decimal,
pub r2: Decimal,
pub s2: Decimal,
}Expand description
Classic floor-trader pivot levels derived from a prior bar’s H/L/C.
pp: Pivot Point(H + L + C) / 3r1,r2: Resistance levels 1 and 2s1,s2: Support levels 1 and 2
Fields§
§pp: DecimalPivot Point
r1: DecimalFirst resistance level
s1: DecimalFirst support level
r2: DecimalSecond resistance level
s2: DecimalSecond support level
Trait Implementations§
Source§impl Clone for PivotPoints
impl Clone for PivotPoints
Source§fn clone(&self) -> PivotPoints
fn clone(&self) -> PivotPoints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PivotPoints
impl Debug for PivotPoints
Source§impl<'de> Deserialize<'de> for PivotPoints
impl<'de> Deserialize<'de> for PivotPoints
Source§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
Source§impl Serialize for PivotPoints
impl Serialize for PivotPoints
impl Copy for PivotPoints
Auto Trait Implementations§
impl Freeze for PivotPoints
impl RefUnwindSafe for PivotPoints
impl Send for PivotPoints
impl Sync for PivotPoints
impl Unpin for PivotPoints
impl UnsafeUnpin for PivotPoints
impl UnwindSafe for PivotPoints
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
Mutably borrows from an owned value. Read more