Skip to main content

LINEARREG_ANGLE

Type: linearreg_angle • Category: indicators

Description

Linear Regression Angle

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringList of pricesno
timeperiodnumberno14

Help

LINEARREG_ANGLE

Overview

The LINEARREG_ANGLE indicator is used in financial markets to calculate the angle of a linear regression line over a specified time period. This indicator helps in understanding the trend and its strength by measuring the angle of the regression line.

Description

The Linear Regression Angle indicator calculates the angle of the linear regression line over a specified time period. It is used to determine the strength and direction of a trend.

What does this worker do?

This worker calculates the Linear Regression Angle for a given set of prices over a specified time period. It takes a list of prices and a time period as input and returns the angle of the linear regression line.

How to interpret the results

The Linear Regression Angle indicator values can be interpreted as follows:

  • A positive angle indicates an upward trend.
  • A negative angle indicates a downward trend.
  • The magnitude of the angle indicates the strength of the trend.

Parameters

The following parameters are required to use the LINEARREG_ANGLE indicator:

Parameters Schema (JSON)

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

Detailed Parameters

  • dataExp:
    • Type: string
    • Description: A list of prices. This is a required input for calculating the Linear Regression Angle.
  • timeperiod:
    • Type: number
    • Default: 14
    • Description: The time period over which the Linear Regression Angle is calculated. A higher time period means the indicator will be slower to react to price changes.

By adjusting the timeperiod parameter, you can control the sensitivity of the indicator to price movements. A shorter time period will result in a more sensitive indicator, while a longer time period will result in a less sensitive indicator.