Function swing_strength_index
Source pub fn swing_strength_index(
df: &DataFrame,
_period: usize,
) -> Result<Series, PolarsError>
Expand description
Calculate swing strength index
Measures the strength of price swings to identify
potential reversals in short-term trends.
§Arguments
df
- DataFrame with OHLC price data
period
- Lookback period for swing calculation
§Returns
Result<Series, PolarsError>
- Series with swing strength values