pub struct DetectorIndicator {
pub config: RegimeConfig,
}Expand description
Batch Indicator adapter for RegimeDetector.
Replays candles through the streaming detector and emits per-bar
confidence (0–1) and regime_id (0=Uncertain, 1=MeanReverting,
2=Volatile, 3=TrendingBull, 4=TrendingBear).
Fields§
§config: RegimeConfigImplementations§
Source§impl DetectorIndicator
impl DetectorIndicator
pub fn new(config: RegimeConfig) -> Self
pub fn with_defaults() -> Self
Trait Implementations§
Source§impl Clone for DetectorIndicator
impl Clone for DetectorIndicator
Source§fn clone(&self) -> DetectorIndicator
fn clone(&self) -> DetectorIndicator
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 DetectorIndicator
impl Debug for DetectorIndicator
Source§impl Indicator for DetectorIndicator
impl Indicator for DetectorIndicator
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 DetectorIndicator
impl RefUnwindSafe for DetectorIndicator
impl Send for DetectorIndicator
impl Sync for DetectorIndicator
impl Unpin for DetectorIndicator
impl UnsafeUnpin for DetectorIndicator
impl UnwindSafe for DetectorIndicator
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