Skip to main content

quantedge_ta/
lib.rs

1//! Streaming technical analysis indicators for Rust.
2//!
3//! Indicators accept any type implementing [`Ohlcv`] and return
4//! typed results via the `Indicator` trait. Values are `None`
5//! until enough data has been received for convergence.
6
7mod bb;
8mod ema;
9mod indicator;
10mod ohlcv;
11mod price_source;
12mod price_window;
13mod sma;
14
15pub use crate::indicator::{Indicator, IndicatorConfig, IndicatorConfigBuilder};
16pub use crate::ohlcv::{Ohlcv, Price, Timestamp};
17pub use crate::price_source::PriceSource;
18
19pub use crate::bb::{Bb, BbConfig, BbConfigBuilder, BbValue, StdDev};
20pub use crate::ema::{Ema, EmaConfig, EmaConfigBuilder};
21pub use crate::sma::{Sma, SmaConfig, SmaConfigBuilder};
22
23#[cfg(test)]
24mod test_util;