ta_lib_in_rust/indicators/
mod.rs

1//! # Technical Indicators
2//!
3//! This module provides technical indicators organized in multiple ways:
4//!
5//! 1. By asset class - specialized indicators optimized for specific markets
6//! 2. By indicator type - traditional categorization of technical indicators
7//! 3. By timeframe - indicators optimized for different trading timeframes
8//!
9//! ## Asset-Specific Indicator Modules
10//!
11//! - [`stock`](stock/index.html): Indicators for stock/equity markets
12//! - [`options`](options/index.html): Indicators for options trading
13//!
14//! ## Traditional Indicator Categories
15//!
16//! - [`moving_averages`](moving_averages/index.html): Trend-following indicators that smooth price data
17//! - [`oscillators`](oscillators/index.html): Indicators that fluctuate within a bounded range
18//! - [`volatility`](volatility/index.html): Indicators that measure the rate of price movement
19//! - [`volume`](volume/index.html): Indicators based on trading volume
20//! - [`trend`](trend/index.html): Indicators designed to identify market direction
21//! - [`momentum`](momentum/index.html): Indicators that measure the rate of price change
22//! - [`cycle`](cycle/index.html): Indicators that identify cyclical patterns in price
23//! - [`pattern_recognition`](pattern_recognition/index.html): Indicators that identify chart patterns
24//! - [`price_transform`](price_transform/index.html): Indicators that transform price data
25//! - [`stats`](stats/index.html): Statistical indicators
26//! - [`math`](math/index.html): Mathematical utility functions
27//!
28//! ## Timeframe-Specific Indicator Modules
29//!
30//! - [`day_trading`](day_trading/index.html): Indicators optimized for intraday trading
31//! - [`short_term`](short_term/index.html): Indicators optimized for short-term trading (days to weeks)
32//! - [`long_term`](long_term/index.html): Indicators optimized for long-term analysis (weeks to months)
33
34// Asset-specific indicator modules
35pub mod options;
36pub mod stock;
37
38// Traditional indicator category modules
39pub mod cycle;
40pub mod math;
41pub mod momentum;
42pub mod moving_averages;
43pub mod oscillators;
44pub mod pattern_recognition;
45pub mod price_transform;
46pub mod stats;
47pub mod trend;
48pub mod volatility;
49pub mod volume;
50
51// Timeframe-specific indicator modules
52pub mod day_trading;
53pub mod long_term;
54pub mod short_term;
55
56// Utility modules
57pub mod add_indicators;
58pub mod test_util;
59
60// Re-export add_technical_indicators function
61pub use add_indicators::add_technical_indicators;
62
63// Re-export commonly used indicators for convenient access
64pub use momentum::calculate_roc;
65pub use moving_averages::{calculate_ema, calculate_sma, calculate_vwap, calculate_wma};
66pub use oscillators::{calculate_macd, calculate_rsi};
67pub use volatility::{calculate_atr, calculate_bollinger_bands};
68pub use volume::{calculate_cmf, calculate_mfi, calculate_obv};
69
70// Re-export asset-specific indicator modules
71pub use options::greeks;
72pub use options::implied_volatility;
73pub use stock::fundamental;
74pub use stock::price_action;