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

Re: [EquisMetaStock Group] 20 / 20 bars



PureBytes Links

Trading Reference Links

The problem:

bodyyes:=Ref(C,-1)-Ref(C,-1);

This variable will always equal to zero.


jose '-)
http://www.metastocktools.com


--- In equismetastock@xxxxxxxxxxxxxxx, "Mormax" <mormax_trader@xxxx> 
wrote:
> 
> 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








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/