Two questions:
1. What exactly does the "barIndex" represent in: upperLinearReg( length, stdDev [, source | sym() | inv()] [, barIndex] )?
2. How can I define a starting point for the lookback "length" value in the code so it plots the LR for say a length of 30 starting 25 bars back?
I would like to modify the "customLinearRegression.efs" found in the ...\Formulas\EFS 2 Custom subdirectory so that it displays the linear regression lines starting from a set # of bars back (i.e., -20) and draws the LR lines for a specified length, say 25.
The following code from the efs doesn't seem to have a starting point.
xUpLR = upperLinearReg(Length, StdDev,eval(Source)());
The "eSignal EFS Developer's Reference" allows for "barIndex" to be added as the last parameter of the above code but it caused an error message.
It seems that when a "barIndex" is added to the end of the above code (see next two lines of code as my example) it returned a null value.
xUpLR = upperLinearReg(Length, StdDev,eval(Source)(),25);
or
xUpLR = upperLinearReg(Length, StdDev,eval(Source)(),-25);
Thank you for any help
1. What exactly does the "barIndex" represent in: upperLinearReg( length, stdDev [, source | sym() | inv()] [, barIndex] )?
2. How can I define a starting point for the lookback "length" value in the code so it plots the LR for say a length of 30 starting 25 bars back?
I would like to modify the "customLinearRegression.efs" found in the ...\Formulas\EFS 2 Custom subdirectory so that it displays the linear regression lines starting from a set # of bars back (i.e., -20) and draws the LR lines for a specified length, say 25.
The following code from the efs doesn't seem to have a starting point.
xUpLR = upperLinearReg(Length, StdDev,eval(Source)());
The "eSignal EFS Developer's Reference" allows for "barIndex" to be added as the last parameter of the above code but it caused an error message.
It seems that when a "barIndex" is added to the end of the above code (see next two lines of code as my example) it returned a null value.
xUpLR = upperLinearReg(Length, StdDev,eval(Source)(),25);
or
xUpLR = upperLinearReg(Length, StdDev,eval(Source)(),-25);
Thank you for any help
Comment