[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Metastockusers] TSF



PureBytes Links

Trading Reference Links

Yarrol

> Anyone knows how Metastock calculates TimeSeriesForecast (TSF)?
> Metastock Help has an explanation for TSF, but I need the formula.
>
> Thanks, best regards
> Yarroll

>From the manual it appears that TSF is the sum of Linear Regression and the
slope of that Linear Regression. I know I've seen code posted for both of
these is the past few months somewhere because I used some of the code to
create some "look ahead" code of my own.

What I saw will be in the archives of this or the equismetastock group. I've
already looked at my own indicator list and drawn a blank.

For what it's worth here's the "slope of line" version that I have.

  {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;

Roy



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/xlw.sC/XP.FAA/3jkFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/