PureBytes Links
Trading Reference Links
|
Assuming that you want
#3 following #2 following #1 and assuming #2 refers to an insideday
rather than a close within previous bar then:
{start}
x:=sum(c<ref(c,-1),3)=3;
y:=l>ref(l,-1) and h<ref(h,-1);
z:=h>ref(h,-1) and h>ref(h,-2) and l<ref(l,-1);
ref(x,-2) and ref(y,-1) and z
{end}
if #2 is close within previous bar then it becomes
{start}
x:=sum(c<ref(c,-1),3)=3;
y:=c>ref(l,-1) and c<ref(h,-1);
z:=h>ref(h,-1) and h>ref(h,-2) and l<ref(l,-1);
ref(x,-2) and ref(y,-1) and z
{end}
--- In equismetastock@xxxxxxxxxxxxxxx, sai20_2000 <no_reply@xxxx>
wrote:
>
>
> I want to find the the following
> 1)3 consecutive lower closes
> 2)yesterdays close to be inside bar(4rth bar)
> 3)todays breakout bar is ouside bar to lastbar and its high is
> greater than previous 2 bars high .(5 th bar)
>
> I have tried to code the following but not working really
> a=Ref(C,-1)< Ref(C,-2);
> b=MA(a,3,S)=4;// signifies yday C< day before ydays close and so
on
> till last 4 closes
> Ref(L,-1)>Ref(L,-2) AND Ref(H,-1)<Ref(H,-2) OR
> H> Ref(H,-2) AND L<Ref(L,-1);//this preceding bar is insideday()
bar
> or breakout bar is ouside() to inside bar
> d=H>Ref(H,-1) AND Ref(H,-2);//sinifies a breakout
> Filter=a AND b AND c;
>
> Suggestions to code it properly is welcomed ,please.
>
>
> Regards
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> 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/
|