# Rate of Change (ROC)

#### Description <a href="#description_92" id="description_92"></a>

The Rate of Change Indicator is a simple yet effective momentum oscillator. It measures the relative percentage change of the prices from one period to the next. The calculation looks at the current price and compares it to the price of n periods ago.

#### Interpretation <a href="#interpretation_44" id="interpretation_44"></a>

As long as the ROC is above 0, the uptrend is intact. As long as the ROC is below 0, the downtrend is intact. Divergences between the indicator and the price development can hint to a trend change.

#### Further information <a href="#further-information_33" id="further-information_33"></a>

VTAD: <http://vtadwiki.vtad.de/index.php/RoC>

#### Usage <a href="#usage_89" id="usage_89"></a>

```csharp
ROC(int period)
ROC(IDataSeries inSeries, int period)
ROC(int period)[int barsAgo]
ROC(IDataSeries inSeries, int period)[int barsAgo]
```

#### Return value <a href="#return-value_87" id="return-value_87"></a>

**double**

When using this method with an index (e.g. **ROC**(14)\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

#### Parameters <a href="#parameters_79" id="parameters_79"></a>

inSeries Input data series for the indicator

period Number of bars included in the calculations

#### Visualization <a href="#visualization_84" id="visualization_84"></a>

![Rate of Change (ROC)](https://agenatrader.github.io/AgenaIndicator-documentation/media/ROC.jpg)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indicators.agenatrader.com/standard-indicators/rate-of-change-roc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
