pub struct StrategyComposer {
pub profile: ComposerProfile,
pub symbol: String,
pub max_exposure_pct: f64,
}Fields§
§profile: ComposerProfile§symbol: String§max_exposure_pct: f64Implementations§
Source§impl StrategyComposer
impl StrategyComposer
pub fn new(profile: ComposerProfile, symbol: &str) -> Self
Sourcepub fn detect_market_state(indicators: &TechnicalIndicators) -> MarketState
pub fn detect_market_state(indicators: &TechnicalIndicators) -> MarketState
Detect current market state from indicators.
Sourcepub fn active_strategies(&self, state: &MarketState) -> Vec<ActiveStrategy>
pub fn active_strategies(&self, state: &MarketState) -> Vec<ActiveStrategy>
Get active strategy template IDs for current market state.
Sourcepub fn compose_signals(
&self,
indicators: &TechnicalIndicators,
prev_indicators: Option<&TechnicalIndicators>,
volume_context: &VolumeContext,
) -> ComposedSignal
pub fn compose_signals( &self, indicators: &TechnicalIndicators, prev_indicators: Option<&TechnicalIndicators>, volume_context: &VolumeContext, ) -> ComposedSignal
Evaluate all active strategies and aggregate signals.
Sourcepub fn format_for_claude(&self, signal: &ComposedSignal) -> String
pub fn format_for_claude(&self, signal: &ComposedSignal) -> String
Format a ComposedSignal for inclusion in a Claude prompt.
Trait Implementations§
Source§impl Clone for StrategyComposer
impl Clone for StrategyComposer
Source§fn clone(&self) -> StrategyComposer
fn clone(&self) -> StrategyComposer
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 StrategyComposer
impl Debug for StrategyComposer
Source§impl<'de> Deserialize<'de> for StrategyComposer
impl<'de> Deserialize<'de> for StrategyComposer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StrategyComposer
impl RefUnwindSafe for StrategyComposer
impl Send for StrategyComposer
impl Sync for StrategyComposer
impl Unpin for StrategyComposer
impl UnsafeUnpin for StrategyComposer
impl UnwindSafe for StrategyComposer
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