[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-movingaveragesimpleosc-en":3},"# Moving Average Simple Oscillator (MOVINGAVERAGESIMPLEOSC)\n\n> StratCraft indicator page for price deviation from SMA.\n\n**Route**: `\u002Findicators\u002Fmovingaveragesimpleosc\u002F`\n\n## What It Does\n\nMOVINGAVERAGESIMPLEOSC measures how far price is extended away from a simple moving average.\n\n## Formula\n\n`Oscillator = Price - SMA(period)`\n\n## Parameters\n\n- `period` - default `30`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fmovingaveragesimpleosc.hpp>\nauto smaOsc = std::make_unique\u003Cnonabt::MOVINGAVERAGESIMPLEOSC>(data().close(), 30);\n```\n\n## Common Usage\n\n- Use the zero line to judge extension versus baseline.\n- Pair it with trend direction or a higher-timeframe filter.\n- Useful for mean reversion and pullback setups.\n"]