RegressionChannel
Linear Regression Channel
Description
Standard Deviation channels around a Linear
Regression. The Linear Regression over N bars is calculated along with the
Standard Deviation for that same number of bars. The regression is plotted as
the midline and then channels are plotted at P standard deviations away from the
midline.
Category
Others
Parameters
N ( Default: 60
Min: 1 Max: 1000 )
P ( Default: 1
Min: .1 Max: 100 )
Chart Script
LinReg : LR(C, N);
SD := STDP(C, N);
Upper : LinReg +
(P * SD.LASTVALUE);
Lower : LinReg - (P * SD.LASTVALUE);