pub struct PivotSetsEngine { /* private fields */ }Expand description
Multi-pivot sets engine calculating classic, fibonacci, camarilla, woodie, demark and CPR levels.
Implementations§
Source§impl PivotSetsEngine
impl PivotSetsEngine
pub fn new(pivot_type: PivotSetType) -> Self
pub fn with_timeframe( pivot_type: PivotSetType, period_timeframe: Timeframe, ) -> Result<Self, TimeframeError>
pub fn with_utc_offset(self, utc_offset_seconds: i32) -> Self
pub fn with_defaults() -> Self
Trait Implementations§
Source§impl Clone for PivotSetsEngine
impl Clone for PivotSetsEngine
Source§fn clone(&self) -> PivotSetsEngine
fn clone(&self) -> PivotSetsEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PivotSetsEngine
impl Debug for PivotSetsEngine
Source§impl Indicator for PivotSetsEngine
impl Indicator for PivotSetsEngine
fn name(&self) -> &str
fn warmup_period(&self) -> usize
fn reset(&mut self)
fn on_bar(&mut self, bar: &Bar) -> Option<IndicatorOutput>
fn alerts(&self) -> Vec<IndicatorAlert>
Source§fn on_checked_bar(
&mut self,
bar: &Bar,
) -> Result<Option<IndicatorOutput>, BarValidationError>
fn on_checked_bar( &mut self, bar: &Bar, ) -> Result<Option<IndicatorOutput>, BarValidationError>
Validates a bar before forwarding it to
Indicator::on_bar.Auto Trait Implementations§
impl Freeze for PivotSetsEngine
impl RefUnwindSafe for PivotSetsEngine
impl Send for PivotSetsEngine
impl Sync for PivotSetsEngine
impl Unpin for PivotSetsEngine
impl UnsafeUnpin for PivotSetsEngine
impl UnwindSafe for PivotSetsEngine
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