[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-ols_slope_interceptn-zh-tw":3},"# OLS Slope Intercept N (OLS_SLOPE_INTERCEPTN)\n\n> StratCraft indicator page for rolling regression slope and intercept.\n\n**Route**: `\u002Findicators\u002Fols-slope-interceptn\u002F`\n\n## What It Does\n\nOLS_SLOPE_INTERCEPTN fits a rolling ordinary least squares line and exposes slope and intercept values.\n\n## Formula\n\n`y = slope * x + intercept`\n\n## Parameters\n\n- `period` - default `10`\n- `prepend_constant` - default `True`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fols_slope_interceptn.hpp>\nauto ols = std::make_unique\u003Cnonabt::OLS_SLOPE_INTERCEPTN>(data().close(), 10, \"True\");\n```\n\n## Common Usage\n\n- Use slope to gauge trend direction and steepness.\n- Use intercept as the rolling regression baseline.\n- Helpful for trend diagnostics and linear-fit analysis.\n"]