pub struct SignalIndicator {
pub engine_cfg: IndicatorConfig,
pub conf_params: ConfluenceParams,
pub liq_params: LiquidityParams,
pub struct_params: StructureParams,
pub cvd_params: CvdParams,
pub signal_confirm_bars: usize,
}Expand description
Batch Indicator adapter for the full signal pipeline.
Constructs all sub-components with their default configurations, replays the
candle slice through each, calls compute_signal per bar, and emits:
signal—+1long,-1short,0neutralbull_score/bear_score— raw confluence scores
For production use, prefer constructing the sub-components individually with
tuned configs and calling compute_signal directly; this adapter is intended
for backtesting and registry-driven workflows.
Fields§
§engine_cfg: IndicatorConfig§conf_params: ConfluenceParams§liq_params: LiquidityParams§struct_params: StructureParams§cvd_params: CvdParams§signal_confirm_bars: usizeImplementations§
Source§impl SignalIndicator
impl SignalIndicator
pub fn new( engine_cfg: IndicatorConfig, conf_params: ConfluenceParams, liq_params: LiquidityParams, struct_params: StructureParams, cvd_params: CvdParams, signal_confirm_bars: usize, ) -> Self
pub fn with_defaults() -> Self
Trait Implementations§
Source§impl Clone for SignalIndicator
impl Clone for SignalIndicator
Source§fn clone(&self) -> SignalIndicator
fn clone(&self) -> SignalIndicator
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 SignalIndicator
impl Debug for SignalIndicator
Source§impl Indicator for SignalIndicator
impl Indicator for SignalIndicator
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 SignalIndicator
impl RefUnwindSafe for SignalIndicator
impl Send for SignalIndicator
impl Sync for SignalIndicator
impl Unpin for SignalIndicator
impl UnsafeUnpin for SignalIndicator
impl UnwindSafe for SignalIndicator
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