Linear Regression
LINEARREG calculates the linear regression of a security’s closing prices.
Method
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
source | pd.Series | Input data series | - |
timeperiod | int | Number of periods for the indicator | 14 |
Outputs
Output | Type |
---|---|
linearreg | np.ndarray |