pub struct PriceLevelAggregator { /* private fields */ }Expand description
Combines Opening Range and period-midpoint levels (both stateful/time-driven) plus round
numbers (stateless, derived from the current price) into one merged candidate list per bar.
Swing Fibonacci levels are intentionally not included here: they need an externally supplied
confirmed swing (see swing_fibonacci_levels), which this aggregator has no opinion on.
Implementations§
Source§impl PriceLevelAggregator
impl PriceLevelAggregator
pub fn new( session_config: SessionConfig, period_tf: Timeframe, round_increment: f64, round_levels_each_side: usize, ) -> Result<Self, PriceLevelAggregatorError>
pub fn reset(&mut self)
pub fn on_bar(&mut self, bar: &Bar) -> Vec<PriceLevel>
Auto Trait Implementations§
impl Freeze for PriceLevelAggregator
impl RefUnwindSafe for PriceLevelAggregator
impl Send for PriceLevelAggregator
impl Sync for PriceLevelAggregator
impl Unpin for PriceLevelAggregator
impl UnsafeUnpin for PriceLevelAggregator
impl UnwindSafe for PriceLevelAggregator
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