pub struct Market {
pub dates: Vec<NaiveDate>,
pub close: Vec<f64>,
pub ctx: Vec<[f64; 3]>,
}Expand description
Market context from SPY, joined by date.
A single stock’s squeeze does not fire in a vacuum: in a calm, rising market, breakouts tend to resolve upward; in a falling, volatile one the downside breaks are fast and large. These three numbers let the model know which weather it is in.
Fields§
§dates: Vec<NaiveDate>§close: Vec<f64>§ctx: Vec<[f64; 3]>[trend vs 200-day average in σ, 126-day time-series momentum, vol ratio 20/126]
Implementations§
Auto Trait Implementations§
impl Freeze for Market
impl RefUnwindSafe for Market
impl Send for Market
impl Sync for Market
impl Unpin for Market
impl UnsafeUnpin for Market
impl UnwindSafe for Market
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