pub struct RouterIndicator {
pub config: EnhancedRouterConfig,
}Expand description
Batch Indicator adapter for EnhancedRouter.
Uses a fixed synthetic symbol "_batch" to route candles through the router
and collect per-bar router_conf and router_position_factor.
Fields§
§config: EnhancedRouterConfigImplementations§
Source§impl RouterIndicator
impl RouterIndicator
pub fn new(config: EnhancedRouterConfig) -> Self
pub fn with_defaults() -> Self
Trait Implementations§
Source§impl Clone for RouterIndicator
impl Clone for RouterIndicator
Source§fn clone(&self) -> RouterIndicator
fn clone(&self) -> RouterIndicator
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 RouterIndicator
impl Debug for RouterIndicator
Source§impl Indicator for RouterIndicator
impl Indicator for RouterIndicator
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 RouterIndicator
impl RefUnwindSafe for RouterIndicator
impl Send for RouterIndicator
impl Sync for RouterIndicator
impl Unpin for RouterIndicator
impl UnsafeUnpin for RouterIndicator
impl UnwindSafe for RouterIndicator
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