pub fn add_volume_indicators(df: &DataFrame) -> PolarsResult<DataFrame>
Expand description
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();