Price Oscillator (PRICEOSC)
StratCraft indicator page for the absolute price oscillator.
Route: /indicators/priceosc/
What It Does
PRICEOSC measures the absolute spread between two moving averages.
Formula
Price Oscillator = EMA(period1) - EMA(period2)
Parameters
period1- default12period2- default26_movav- defaultExponentialMovingAverage
C++23 API
#include <nonabt/indicators/priceosc.hpp>
auto priceOsc = std::make_unique<nonabt::PRICEOSC>(data().close(), 12, 26, "ExponentialMovingAverage");
Common Usage
- Use it to measure trend spread without normalizing by price.
- Pair it with a signal or threshold for cleaner decisions.
- Helpful when price scale is already comparable across samples.
