[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-stoch-en":3},"# Stochastic Oscillator (STOCH)\n\n> StratCraft indicator page for Stochastic momentum analysis.\n\n**Route**: `\u002Findicators\u002Fstoch\u002F`\n\n## What It Does\n\nStochastic compares the close to the recent high-low range. It is used to identify overbought and oversold momentum conditions.\n\n## Formula\n\n`%K = 100 * (Close - Lowest Low(n)) \u002F (Highest High(n) - Lowest Low(n))`\n\n`%D = SMA(%K, 3)`\n\n## Parameters\n\n- `period` - default `14`\n- `period_dfast` - default `3`\n- `movav` - default `MovingAverageSimple`\n- `upperband` - default `80`\n- `lowerband` - default `20`\n- `safediv` - default `False`\n- `safezero` - default `0`\n- `period_dslow` - default `3`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fstoch.hpp>\nauto stoch = std::make_unique\u003Cnonabt::STOCH>(data(), 14, 3, \"MovingAverageSimple\", 80, 20, false, 0, 3);\n```\n\n## Common Usage\n\n- Use Stochastic for overbought\u002Foversold conditions.\n- Combine it with price structure or trend filters.\n- Use crossovers between `%K` and `%D` for timing.\n\n## Practical Pattern\n\nMany mean-reversion systems buy near oversold levels and sell near overbought levels, but only when the broader trend is not too strong.\n"]