Skip to main content

LINEARREG_SLOPE

Type: linearreg_slope • Category: indicators

Description

Linear Regression Slope

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringPrice listno
timeperiodnumberno14

Help

LINEARREG_SLOPE

Overview

The LINEARREG_SLOPE indicator is used in financial markets to calculate the slope of a linear regression line. This indicator helps in understanding the trend and direction of the market.

Description

The Linear Regression Slope indicator calculates the slope of a linear regression line. It is used to determine the direction and strength of a trend. A positive slope indicates an upward trend, while a negative slope indicates a downward trend.

What does this worker do?

This worker calculates the slope of a linear regression line for a given set of price data over a specified time period. It helps traders and analysts to identify the trend and make informed decisions.

How to interpret the results

The result of the LINEARREG_SLOPE indicator is a value that represents the slope of the linear regression line. A:

  • Positive value indicates an upward trend.
  • Negative value indicates a downward trend.
  • Higher absolute value indicates a stronger trend.

Parameters

The following parameters are required to use the LINEARREG_SLOPE indicator:

Parameters Schema (JSON)

{
"dataExp": {
"type": "string",
"description": "Price list"
},
"timeperiod": {
"type": "number",
"default": 14
}
}

Detailed Parameters

  • dataExp:
    • Type: string
    • Description: A list of price data.
  • timeperiod:
    • Type: number
    • Default: 14
    • Description: The time period over which the linear regression slope is calculated.

Usage

To use the LINEARREG_SLOPE indicator, provide the required parameters, dataExp and timeperiod, and the indicator will return the slope of the linear regression line.