PureBytes Links
Trading Reference Links
|
I came across this code in S&C magazine. The question is a bit naive, but how do I use this in MS 10?
period:=5;
haclose:=(O+H+L+C)/4;
haopen:=(PREV+Ref(haclose,-1))/2;
hahigh:=Max(Max(H,haopen),haclose);
halow:=Min(Min(L,haopen),haclose);
counter:=If(hahigh>Ref(hahigh,-1) AND
halow>Ref(halow,-
1),1,If(hahigh<Ref(hahigh,-1) AND
halow<Ref(halow,-1),-1,0));
indic:=Sum(counter,period)/period*100;
buy:=indic>-20;
sell:=indic<-20;
Thanks.
------------------------------------
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/
|