SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: SnowShredder who wrote (4017)5/17/2004 2:25:35 AM
From: Warthog  Read Replies (2) of 4056
 
hi,
here are a couple of ideas..

cola: {the highest close value in 60 days}
hv:=hhv(c,60);
bh:=barssince(hhv(c,60)=hv);
bh
colb: { the low value in say 20 days}
lv:=llv(c,20);
bl:=barssince(llv(c,20)=lv);
bl
filter:
if(cola = colb)

another approach might be using the peak functions
p1:=Peak(1,C,5);
pbs:=PeakBars(1,C,5);
p2:=Peak(2,C,5);
pbs2:=PeakBars(2,C,5);
dd:=pbs2-pbs; { where this should be in the desired range}

hope this helps
wart
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext