Function calculate_aroon

Source
pub fn calculate_aroon(
    df: &DataFrame,
    window: usize,
) -> PolarsResult<(Series, Series)>
Expand description

Calculates the Aroon indicator (Aroon Up and Aroon Down)

§Arguments

  • df - DataFrame containing the price data with high, low columns
  • window - Window size for calculation (typically 25)

§Returns

Returns a PolarsResult containing a tuple of (Aroon Up, Aroon Down) Series