Skip to main content

rocr


ROCR

Type: rocr • Category: indicators

Description

Relative Change

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringList of pricesno
timeperiodnumberno10

Help

ROCR

Relative Change Indicator for Financial Markets

Description

The ROCR (Relative Change) worker is a technical indicator used in financial markets to measure the percentage change in price over a specified period. It helps traders and analysts gauge the momentum and volatility of an asset.

What does this worker do?

This worker calculates the relative change in price of a financial instrument over a given time period. It takes a list of prices and a time period as inputs and returns the relative change values.

How to interpret the results

The ROCR values represent the percentage change in price over the specified period. A positive value indicates an increase in price, while a negative value indicates a decrease. The magnitude of the value represents the magnitude of the change.

Parameters

The following parameters can be passed to the ROCR worker:

Parameters Schema (JSON)

{
"dataExp": {
"type": "string",
"description": "List of prices"
},
"timeperiod": {
"type": "number",
"default": 10
}
}

Detailed Parameters

  • dataExp:
    • Type: string
    • Description: A list of prices.
  • timeperiod:
    • Type: number
    • Description: The time period over which to calculate the relative change.
    • Default: 10

Usage

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

  • A list of prices as a string (dataExp)
  • An optional time period as a number (timeperiod), defaulting to 10 if not provided.

The worker will then return the relative change values, which can be used for further analysis or visualization.