pub trait Indicator {
// Required methods
fn name(&self) -> String;
fn has_inputs(&self) -> bool;
fn initialized(&self) -> bool;
fn reset(&mut self);
// Provided methods
fn handle_delta(&mut self, delta: &OrderBookDelta) { ... }
fn handle_deltas(&mut self, deltas: &OrderBookDeltas) { ... }
fn handle_depth(&mut self, depth: &OrderBookDepth10) { ... }
fn handle_book(&mut self, book: &OrderBook) { ... }
fn handle_quote(&mut self, quote: &QuoteTick) { ... }
fn handle_trade(&mut self, trade: &TradeTick) { ... }
fn handle_bar(&mut self, bar: &Bar) { ... }
}
Formats the value using the given formatter.
Read more