Moving Average Simple Oscillator (MOVINGAVERAGESIMPLEOSC)

StratCraft indicator page for price deviation from SMA.

Route: /indicators/movingaveragesimpleosc/

What It Does

MOVINGAVERAGESIMPLEOSC measures how far price is extended away from a simple moving average.

Formula

Oscillator = Price - SMA(period)

Parameters

  • period - default 30

C++23 API

#include <nonabt/indicators/movingaveragesimpleosc.hpp>
auto smaOsc = std::make_unique<nonabt::MOVINGAVERAGESIMPLEOSC>(data().close(), 30);

Common Usage

  • Use the zero line to judge extension versus baseline.
  • Pair it with trend direction or a higher-timeframe filter.
  • Useful for mean reversion and pullback setups.