pub trait CandleComponent {
fn value(&self) -> f64;
fn update(&mut self, trade: &Trade);
fn reset(&mut self);
}
Expand description
Each component of a Candle must fullfill this trait
pub trait CandleComponent {
fn value(&self) -> f64;
fn update(&mut self, trade: &Trade);
fn reset(&mut self);
}
Each component of a Candle must fullfill this trait