Skip to main content

ROCR

Type: rocr • Category: indicators

Description

Relative Change

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringprices datano
pricestringPrice field to use to calculate ROCRno
timeperiodnumberNumber of periods to use for ROCR calculationno10

Help

ROCR

Relative Change

The ROCR (Rate of Change) indicator is a momentum indicator used in financial analysis to measure the percentage change in price over a specified period of time.

Description

The ROCR indicator calculates the relative change in price by comparing the current price to the price a specified number of periods ago. This indicator is used to identify trends, gauge momentum, and detect potential buy and sell signals.

What does this worker do?

The ROCR worker calculates the rate of change of a given price field over a specified period of time. It takes the following parameters:

  • dataExp: prices data
  • price: Price field to use to calculate ROCR
  • timeperiod: Number of periods to use for ROCR calculation

The worker returns the calculated ROCR values.

How to interpret the results

The ROCR indicator can be interpreted as follows:

  • A positive ROCR value indicates an upward price movement, while a negative value indicates a downward price movement.
  • A ROCR value above 0 indicates that the current price is higher than the price a specified number of periods ago, indicating an uptrend.
  • A ROCR value below 0 indicates that the current price is lower than the price a specified number of periods ago, indicating a downtrend.
  • A ROCR value close to 0 indicates a stable or consolidating market.

Usage

To use the ROCR worker, simply provide the required parameters:

  • dataExp: Your price data
  • price: The price field to use for the calculation (e.g. close, high, low)
  • timeperiod: The number of periods to use for the calculation (e.g. 14, 30)

Visualizing the ROCR Indicator

For a visual representation of how to use the ROCR indicator, please see the following images:

Full ROCR Indicator Usage

[![Full ROCR Indicator Usage](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)

Short ROCR Indicator Usage

[![Short ROCR Indicator Usage](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)

Additional Information

The ROCR indicator is often used in conjunction with other technical indicators to confirm trading signals. It can be used to identify:

  • Trend reversals: A change in the ROCR value from positive to negative or vice versa can indicate a trend reversal.
  • Overbought/oversold conditions: Extreme ROCR values can indicate overbought or oversold conditions, which may lead to a reversal in the trend.

By incorporating the ROCR indicator into your technical analysis toolkit, you can gain a better understanding of market trends and make more informed trading decisions.