pub fn calculate_adxr(df: &DataFrame, window: usize) -> PolarsResult<Series>
Expand description
Calculates the Average Directional Movement Index Rating (ADXR)
§Arguments
df
- DataFrame containing the price data with high, low, close columnswindow
- Window size for ADX calculation (typically 14)
§Returns
Returns a PolarsResult containing the ADXR Series (average of current ADX and ADX from “window” periods ago)