Segment the series into distinct trend ranges based on goodness-of-fit thresholds. Uses rust_ti 2.1.5 TrendBreakConfig parameters.
Prices series.
Maximum number of outliers allowed before trend break.
Soft minimum adjusted R-squared threshold.
Hard minimum adjusted R-squared threshold.
Soft RMSE multiplier for trend breaks.
Hard RMSE multiplier for trend breaks.
Soft minimum Durbin-Watson statistic.
Soft maximum Durbin-Watson statistic.
Hard minimum Durbin-Watson statistic.
Hard maximum Durbin-Watson statistic.
Array of [startIndex, endIndex, slope, intercept].
OLS trend line (slope, intercept) for all points in prices
.
Series to analyze.
[slope, intercept]
Calculate all local maxima (peaks) using a rolling window.
High prices (or series to scan).
Window length for detecting a local peak.
Minimum index distance between accepted peaks.
Array of [value, index] pairs.
OLS trend line (slope, intercept) computed on detected peaks over windows of size period
.
Series to analyze.
Window length used to find peaks.
[slope, intercept]
Calculate all local minima (valleys) using a rolling window.
Low prices (or series to scan).
Window length for detecting a local valley.
Minimum index distance between accepted valleys.
Array of [value, index] pairs.
OLS trend line (slope, intercept) computed on detected valleys over windows of size period
.
Series to analyze.
Window length used to find valleys.
[slope, intercept]
Chart trend utilities (no single/bulk split).
Notes: