# Rate Of Change (ROC)

> QuantNexus indicator page for the ROC momentum oscillator.

**Route**: `/quantnexus/indicators/roc/`

## What It Does

ROC measures how quickly price is changing over a lookback period. It is a momentum indicator that can be used for trend strength or divergence analysis.

## Formula

`ROC = ((Price / Price_n) - 1) * 100`

## Parameters

- `period` - default `12`

## C++23 API

```cpp
#include <nonabt/indicators/roc.hpp>
auto roc = std::make_unique<nonabt::ROC>(data().close(), 12);
```

## Common Usage

- Use ROC to detect momentum acceleration or deceleration.
- Combine ROC with threshold rules around zero.
- Helpful for identifying overextended moves.

## Practical Pattern

A rising ROC above zero suggests positive momentum; a falling ROC below zero suggests negative momentum.
