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

[EquisMetaStock Group] Re: trendline angle



PureBytes Links

Trading Reference Links

------------------------------------------------------------------------
You cannot reply to this message via email because you have chosen not
to disclose your email address to the group.

To reply:  http://groups.yahoo.com/group/equismetastock/post?act=reply&messageNum=5067
------------------------------------------------------------------------


Drakov,

You may want to try this:

{Moving Linear Regression Line}
Pe:=Input("Periods",3,1000,10);
Z:=LastValue(LinearReg(C,Pe));{try something other than close here}
Y:=LastValue(Cum(1))-Cum(1);
U:=Z-(LastValue(LinRegSlope(C,Pe))*Y);{and here}
R:=0-(LastValue(Cum(1))-Pe);
final:=U+Ref(C,R)-Ref(C,R);
final;
{end}

This indicator updates daily. If you plot a 5 day and a 10 day you 
will notice a change in trend very quickly. You may wish to try mean 
price or typical price instead of closing prices.

Kirk out. 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sell a Home for Top $
http://us.click.yahoo.com/RrPZMC/jTmEAA/MVfIAA/BefplB/TM
---------------------------------------------------------------------~->

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/