PureBytes Links
Trading Reference Links
|
There is a linear regression line that comes with Metastock. It may be what
you need.
Lionel
From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx]
On Behalf Of giccanto
Sent: Thursday, May 31, 2007 6:17 PM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] How to convert from e-signal lenguage to
metastock lenguage
Anyone can help and suggest how to convert formulas written in efs (e-
signal lenguage) to metastock lenguage, for instance this Linear
Regression Line. Thanks
1 function preMain()
2{
3 setStudyTitle("Linear Regression Line");
4 setCursorLabelName("LR", 0);
5 setDefaultBarFgColor(Color.red, 0);
6 setDefaultBarThickness(3, 0);
7 setPriceStudy(true);
8}
9
10function main(Length) {
11 if(Length == null) Length = 5;
12 var sum = 0;
13 var i = 0;
14 var mt = 0;
15 var wt = 0;
16 for(i = Length; i > 0; i--)
17 sum += (i - (Length + 1) / 3) * close(i - Length);
18 wt = 6 / (Length * (Length + 1)) * sum
19 return wt;
20}
21
22
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.5/826 - Release Date: 5/31/2007
4:51 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.5/826 - Release Date: 5/31/2007
4:51 PM
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|