pub struct RoutedSignal {
pub strategy: ActiveStrategy,
pub regime: MarketRegime,
pub confidence: f64,
pub position_factor: f64,
pub reason: String,
pub detection_method: DetectionMethod,
pub methods_agree: Option<bool>,
pub state_probabilities: Option<Vec<f64>>,
pub expected_duration: Option<f64>,
pub trend_direction: Option<TrendDirection>,
}Expand description
Signal emitted by the router indicating the recommended action
Fields§
§strategy: ActiveStrategyRecommended strategy to use
regime: MarketRegimeDetected market regime
confidence: f64Confidence in the regime classification (0.0–1.0)
position_factor: f64Suggested position size factor (0.0–1.0)
reason: StringHuman-readable reason for the recommendation
detection_method: DetectionMethodWhich detection method produced this
methods_agree: Option<bool>Did ensemble methods agree? (only populated for Ensemble)
state_probabilities: Option<Vec<f64>>HMM state probabilities (only populated for HMM/Ensemble)
expected_duration: Option<f64>Expected regime duration in bars (from HMM)
trend_direction: Option<TrendDirection>Trend direction if trending
Trait Implementations§
Source§impl Clone for RoutedSignal
impl Clone for RoutedSignal
Source§fn clone(&self) -> RoutedSignal
fn clone(&self) -> RoutedSignal
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 RoutedSignal
impl Debug for RoutedSignal
Auto Trait Implementations§
impl Freeze for RoutedSignal
impl RefUnwindSafe for RoutedSignal
impl Send for RoutedSignal
impl Sync for RoutedSignal
impl Unpin for RoutedSignal
impl UnsafeUnpin for RoutedSignal
impl UnwindSafe for RoutedSignal
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