# Pretty Good Oscillator (PGO)

> QuantNexus indicator page for distance from a smoothed average.

**Route**: `/quantnexus/indicators/pgo/`

## What It Does

PGO measures how far price is from a moving-average baseline, with smoothing controlled by the selected average type.

## Formula

`PGO = Price - Moving Average`

## Parameters

- `period` - default `14`
- `_movav` - default `MovingAverageSimple`

## C++23 API

```cpp
#include <nonabt/indicators/pgo.hpp>
auto pgo = std::make_unique<nonabt::PGO>(data().close(), 14, "MovingAverageSimple");
```

## Common Usage

- Use it as a momentum and extension gauge.
- Pair it with a threshold or regime filter.
- Helpful for breakout and trend continuation workflows.
