[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] 20 / 20 bars



PureBytes Links

Trading Reference Links

 
I' ve tried for myself, but i'm getting division by zero, even with the condition (range AND bodyyes <>0)
 
sounds strange, but that's it.
 
range:=H-L;
body:=C-O;
bodyyes:=Ref(C,-1)-Ref(C,-1);
uptale:=H-O;
btmtale:=C-L;
If(((range AND bodyyes) <>0),
If((((body/bodyyes)>0.5) AND ((body/range)>0.6) AND ((uptale/range)<0.2) AND ((btmtale/range)<0.2)), 1,0),0)
 
 
I found a code (in a late post) but doesn's seems do work alright.

r:=H-L;
r10:=Mov(r,10,S);
orx:=(O-L)/r;
crx:=(C-L)/r;
 
rsi1:=Ref(RSI(14),-1);
 
bullbarz:=Sum(orx<=.2 AND crx>=.8 AND RSI(14)<30 AND RSI(14)>rsi1
AND r>r10,2)=2;
bearbarz:=Sum(orx>=.8 AND crx<=.2 AND RSI(14)>75 AND RSI(14)<rsi1
AND r>r10,2)=2;
 
If(bullbarz,1,If(bearbarz,-1,0))
 
 
 
Could anybody help me to code an exploration for the bearish 20/20 bars, from pristine setup ?
 
 
Thanks.
 
MORMAX
 
 
 
----- Original Message -----
From: Mormax
Sent: Wednesday, September 28, 2005 10:53 PM
Subject: [EquisMetaStock Group] 20 / 20 bars

 
Does anyone have already coded an exploration to find the 20 / 20 bullish and bearish bars, from pristine setup ?
 
 
 
Thanks.
 
Att,
 
MORMAX


YAHOO! GROUPS LINKS