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
53
54
55
56
57
58
59
60
61
62
// Volume indicators module
use *;
// Modules for volume indicators
// Re-export volume indicators
pub use calculate_adl;
pub use calculate_cmf;
pub use calculate_eom;
pub use calculate_mfi;
pub use calculate_obv;
pub use calculate_pvt;
/// Add volume-based indicators to a DataFrame
///
/// This function calculates and adds multiple volume-based indicators to the input DataFrame,
/// which is useful for combining multiple indicators in a single call.
///
/// # Arguments
///
/// * `df` - DataFrame containing OHLCV data
///
/// # Returns
///
/// * `PolarsResult<DataFrame>` - DataFrame with added volume indicators
///
/// # Example
///
/// ```
/// use polars::prelude::*;
/// use ta_lib_in_rust::indicators::volume::add_volume_indicators;
///
/// // Create or load a DataFrame with OHLCV data
/// let df = DataFrame::default(); // Replace with actual data
///
/// // Add volume indicators
/// let df_with_indicators = add_volume_indicators(&df).unwrap();
/// ```