nautilus_indicators::indicator

Trait Indicator

Source
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) { ... }
}

Required Methods§

Source

fn name(&self) -> String

Source

fn has_inputs(&self) -> bool

Source

fn initialized(&self) -> bool

Source

fn reset(&mut self)

Provided Methods§

Source

fn handle_delta(&mut self, delta: &OrderBookDelta)

Source

fn handle_deltas(&mut self, deltas: &OrderBookDeltas)

Source

fn handle_depth(&mut self, depth: &OrderBookDepth10)

Source

fn handle_book(&mut self, book: &OrderBook)

Source

fn handle_quote(&mut self, quote: &QuoteTick)

Source

fn handle_trade(&mut self, trade: &TradeTick)

Source

fn handle_bar(&mut self, bar: &Bar)

Trait Implementations§

Source§

impl Debug for dyn Indicator + Send

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

Source§

impl Indicator for AdaptiveMovingAverage

Source§

impl Indicator for DoubleExponentialMovingAverage

Source§

impl Indicator for ExponentialMovingAverage

Source§

impl Indicator for HullMovingAverage

Source§

impl Indicator for LinearRegression

Source§

impl Indicator for WilderMovingAverage

Source§

impl Indicator for SimpleMovingAverage

Source§

impl Indicator for VariableIndexDynamicAverage

Source§

impl Indicator for VolumeWeightedAveragePrice

Source§

impl Indicator for WeightedMovingAverage

Source§

impl Indicator for BookImbalanceRatio

Source§

impl Indicator for ArcherMovingAveragesTrends

Source§

impl Indicator for AroonOscillator

Source§

impl Indicator for BollingerBands

Source§

impl Indicator for Bias

Source§

impl Indicator for CommodityChannelIndex

Source§

impl Indicator for ChandeMomentumOscillator

Source§

impl Indicator for DirectionalMovement

Source§

impl Indicator for KlingerVolumeOscillator

Source§

impl Indicator for MovingAverageConvergenceDivergence

Source§

impl Indicator for OnBalanceVolume

Source§

impl Indicator for Pressure

Source§

impl Indicator for PsychologicalLine

Source§

impl Indicator for RateOfChange

Source§

impl Indicator for RelativeStrengthIndex

Source§

impl Indicator for Stochastics

Source§

impl Indicator for Swings

Source§

impl Indicator for VerticalHorizontalFilter

Source§

impl Indicator for EfficiencyRatio

Source§

impl Indicator for SpreadAnalyzer

Source§

impl Indicator for AverageTrueRange

Source§

impl Indicator for DonchianChannel

Source§

impl Indicator for FuzzyCandlesticks

Source§

impl Indicator for KeltnerChannel

Source§

impl Indicator for KeltnerPosition

Source§

impl Indicator for RelativeVolatilityIndex

Source§

impl Indicator for VolatilityRatio