pub trait Allocator: Sync {
// Required methods
fn name(&self) -> &'static str;
fn thesis(&self) -> &'static str;
fn targets(
&self,
v: &DayView<'_>,
days_in: usize,
) -> Option<Vec<(usize, f64)>>;
}Expand description
A stock strategy: target weights each close.