pub fn mean_reversion_signals(
df: &DataFrame,
_trend_period: usize,
_oversold_threshold: f64,
) -> Result<Series, PolarsError>
Expand description
Generate mean reversion signals based on oversold/overbought conditions
ยงArguments
df
- DataFrame with OHLC datatrend_period
- Period for trend identificationoversold_threshold
- Threshold to identify oversold conditions