LinRegForecastArray (Function)
Used to calculate the predicted y-value for a given x-value, based on the linear regression calculation of an array.
All array-based function calculations begin with array element 1.
Function
LinRegForecastArray(PriceArray, Size, TgtPos)
Parameters
|
Name |
Type |
Description |
|
PriceArray |
NumericArray |
A numeric array that calculations are based on. |
|
Size |
Numeric |
A numeric expression representing the number of elements in the original array that have been used. |
|
TgtPos |
Numeric |
A numeric expression representing the data point for which you want to predict a value. Use a negative integer for a future bar, a positive integer for a previous bar, and zero for the current bar. |
Returns
A numeric value containing the predicted y-value for a given x-value, based on the linear regression calculation.