Weighted Moving Average Oscillator (WEIGHTEDMOVINGAVERAGEOSC)

StratCraft indicator page for distance from a weighted moving average baseline.

Route: /indicators/weightedmovingaverageosc/

What It Does

WEIGHTEDMOVINGAVERAGEOSC measures how far price is extended away from a weighted moving average.

Formula

Oscillator = Price - WMA(period)

Parameters

  • period - default 30

C++23 API

#include <nonabt/indicators/weightedmovingaverageosc.hpp>
auto wmaOsc = std::make_unique<nonabt::WEIGHTEDMOVINGAVERAGEOSC>(data().close(), 30);

Common Usage

  • Use the zero line for momentum confirmation.
  • Pair it with WMA or WMA envelope bands to detect extensions.
  • Helpful for pullback timing and short-term mean reversion.