PureBytes Links
Trading Reference Links
|
Roy, both posted Linear Regression Slope formulae outputs are so close
to the MetaStock canned LRS version, that in my view it isn't worth
the extra code complexity and processing overheads.
---8<------------------
pds:=Input("Periods",5,50,10);
LinRegSlope(P,pds)
---8<------------------
---8<------------------
A:=Tema(C,75);
pds:=10;
LinRegSlope(A,pds)
---8<------------------
jose '-)
--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx>
wrote:
> Bill
>
> I have this formula for "slope of line".
>
> {Slope of Line}
> Periods:=Input("Periods",5,50,10);
> Slope:=((Sum(Cum(1)*P,Periods))-
> (Sum(Cum(1),Periods)*Sum(P,Periods)/Periods))/
> ((Sum(Power(Cum(1),2),Periods))-
> (Power(Sum(Cum(1),Periods),2)/Periods));
> Slope;
>
> Here's virtually the same thing applied to a 75 period Tema of
CLOSE.
>
> {Slope of Tema}
> A:=Tema(C,75);
> Pds:=10;
> Slope:=((Sum(Cum(1)*A,Pds))-
> (Sum(Cum(1),Pds)*Sum(A,Pds)/Pds))/
> ((Sum(Power(Cum(1),2),Pds))-
> (Power(Sum(Cum(1),Pds),2)/Pds));
> Slope;
>
> I'm unaware or who the author is but think I picked these up from
the Guppy site ages ago.
>
> Roy
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|