pub struct BbPrimIndicator {
pub period: usize,
pub std_dev: f64,
}Expand description
Batch Indicator wrapping the regime-internal BollingerBands primitive.
Outputs bb_upper, bb_mid, bb_lower, and bb_width per bar.
Fields§
§period: usize§std_dev: f64Implementations§
Trait Implementations§
Source§impl Clone for BbPrimIndicator
impl Clone for BbPrimIndicator
Source§fn clone(&self) -> BbPrimIndicator
fn clone(&self) -> BbPrimIndicator
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 BbPrimIndicator
impl Debug for BbPrimIndicator
Source§impl Indicator for BbPrimIndicator
impl Indicator for BbPrimIndicator
Source§fn required_len(&self) -> usize
fn required_len(&self) -> usize
Minimum number of candles required before output is non-
NaN.
Mirrors Python’s implicit warm-up period used for validation.Source§fn required_columns(&self) -> &[&'static str]
fn required_columns(&self) -> &[&'static str]
Which OHLCV fields this indicator reads. Read more
Source§fn calculate(
&self,
candles: &[Candle],
) -> Result<IndicatorOutput, IndicatorError>
fn calculate( &self, candles: &[Candle], ) -> Result<IndicatorOutput, IndicatorError>
Compute the indicator over a full candle slice (batch mode). Read more
Auto Trait Implementations§
impl Freeze for BbPrimIndicator
impl RefUnwindSafe for BbPrimIndicator
impl Send for BbPrimIndicator
impl Sync for BbPrimIndicator
impl Unpin for BbPrimIndicator
impl UnsafeUnpin for BbPrimIndicator
impl UnwindSafe for BbPrimIndicator
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