1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # RSTA
//!
//! A Rust library for technical analysis and trading strategies.
//!
//! ## Features
//!
//! - Momentum indicators: Rsi, StochasticOscillator, WilliamsR
//! - Trend indicators: Ema, Sma
//! - Volatility indicators: Atr, BollingerBands, KeltnerChannels, Std
//! - Volume indicators: Adl, Cmf, Obv, Vroc
//! - Consistent naming and export patterns across all indicators
//! - Comprehensive documentation and examples
//! - Error handling for invalid parameters and insufficient data
//! - Current version: 0.0.2
//!
//! ## Quick Start
//!
//! ```rust
//! use rsta::indicators::Indicator;
//! use rsta::indicators::Candle;
//! use rsta::indicators::Sma;
//!
//! // Create a Simple Moving Average indicator
//! let mut sma = Sma::new(5).unwrap();
//!
//! // Create some price data
//! let prices = vec![42.0, 43.0, 44.0, 45.0, 46.0, 47.0, 48.0, 49.0, 50.0];
//!
//! // Calculate SMA values
//! let sma_values = sma.calculate(&prices).unwrap();
//! println!("SMA values: {:?}", sma_values);
//! ```
//!
//! For more examples and detailed documentation, please refer to the individual indicator modules.
/// Re-exports all indicator modules
/// Trading signals layer built on top of indicator outputs.
/// Single-asset backtesting engine.
/// CSV import/export utilities (gated behind the `csv` feature).
// Re-export key types for convenience
pub use Candle;
pub use Indicator;
pub use IndicatorError;