PureBytes Links
Trading Reference Links
|
Sorry, forgot to paste the code.
Clyde
{*******************************************************************
Description : This Indicator
plots Linear Regression
Provided By : Omega Research,
Inc. (c) Copyright 1999
********************************************************************}
Inputs: Price(Close), Length(14), Displace(0), StdDMult(2);
If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then
Begin
Value1=LinearRegValueFC(Price,
Length, 0);
Plot1[Displace](Value1,
"LinearReg");
If
StdDMult<>0 then begin
Value2=StdDev(c,Length);
Plot2[Displace](Value1+StdDMult*Value2,
"LinReg+SD");
Plot3[Displace](Value1-StdDMult*Value2,
"LinReg-SD");
End;
{Alert
Criteria}
If Price
< Plot1 AND Plot1 < Plot1[1] AND Plot1[1] > Plot1[2] Then
Alert("The
Linear Regression has just changed direction and is now
bullish")
Else
If
Price > Plot1 AND Plot1 > Plot1[1] AND Plot1[1] < Plot1[2]
Then
Alert("The
Linear Regression has just changed direction and is now
bearish");
{Linear
Regression Expert Commentary}
#BeginCmtry
Commentary(ExpertLinearReg(Length,
Plot1));
#End;
End;
The following is a modification of
Omega code in which channels
have been added at sum multiple of StandardDeviation.
I hope this gives you an idea of how to proceed.
Clyde Lee
At 14:43 1/28/01 -0500, Dan Tillemans wrote:
Realtraders,
I would like to create linear regression channels using TS2000. I
can see
how to do the regression line, but cannot find a way to get
deviation
channel lines. I talked with TS tech and they said I might need
third party
help on this? This should not be so hard? Can anyone offer
assistance?
Thanks.
Dan Tillemans
Yahoo! Groups
Sponsor
To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxx
Yahoo! Groups
Sponsor
To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxx
Yahoo! Groups Sponsor
www. .com
To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxx
|