StdError (Function)
The StdError function returns a measure of the standardized variation around the regression line.
Syntax
StdError(Price, Length)
Returns (Double)
A numeric value containing the measure of the standardized variation around the regression line which is based on the Price and Length.
Parameters
Name |
Type |
Description |
Price |
Numeric |
Specifies which bar value (price, function, or formula) to be considered. |
Length |
Numeric |
Sets the number of bars to be considered. |
Remarks
This calculation provides an approximation of the accuracy of the regression line.
Example
Assigns to Value1 the standard error based on the Close over the past 14 bars:
Value1 = StdError(Close, 14);
Assigns to Value2 the standard error based on the High over the last 21 bars:
Value2 = StdError(High, 21);