Skip to main content

market_model/strategy/
mod.rs

1pub mod buy_and_hold;
2pub mod ma_crossover;
3pub mod rsi;
4
5use crate::types::Signal;
6
7/// A stateless strategy mapping price history to a trading signal.
8///
9/// Given the same history, always produces the same signal.
10pub trait PriceStrategy: Send + Sync {
11    /// Determine the trading signal from observed price history.
12    fn signal(&self, history: &[f64]) -> Signal;
13}