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

Required Methods

The current value of the component

Updates the state with newest trade information

Resets the component state to its default

Implementors