Skip to main content

linearreg_intercept


LINEARREG_INTERCEPT

Type: linearreg_intercept • Category: indicators

Description

Free expression of linear regression

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringList of pricesno
timeperiodnumberno14

Help

LINEARREG_INTERCEPT

Description

The LINEARREG_INTERCEPT indicator is a financial markets indicator that calculates the intercept of a linear regression line. It is used to analyze and forecast price movements in financial markets.

What does this worker do?

This worker calculates the intercept of a linear regression line based on a given list of prices and a specified time period. The linear regression line is a free expression of the relationship between the prices and time.

How to interpret the results

The intercept of the linear regression line represents the expected value of the price when the time is zero. A positive intercept indicates an upward trend, while a negative intercept indicates a downward trend. The intercept can be used to forecast future prices and identify potential trends.

Parameters

The following parameters are required to configure the LINEARREG_INTERCEPT indicator:

Parameters Schema (JSON)

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

Parameters List

  • dataExp:
    • Type: string
    • Description: List of prices
  • timeperiod:
    • Type: number
    • Description: The time period for the linear regression calculation
    • Default: 14

Example Use Case

To use the LINEARREG_INTERCEPT indicator, provide a list of prices and a time period. For example:

{
"dataExp": "price1,price2,price3,...",
"timeperiod": 20
}

This will calculate the intercept of the linear regression line for the given list of prices over a 20-period time frame.