Function calculate_plus_dm
Source pub fn calculate_plus_dm(df: &DataFrame, window: usize) -> PolarsResult<Series>
Expand description
Calculates Plus Directional Movement (+DM)
§Arguments
df
- DataFrame containing the price data with high, low columns
window
- Window size for smoothing (typically 14)
§Returns
Returns a PolarsResult containing the smoothed +DM Series