PureBytes Links
Trading Reference Links
|
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
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/
|