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

Re: [EquisMetaStock Group] 20 / 20 bars



PureBytes Links

Trading Reference Links

I have code for Pristine 20-20 bars for Amibroker . It seem not that 
difficult to convert to MS . hope this helps

AB Code
bullish=O <=((H-L)*0.20)+L AND C >= H- ((H-L)*0.20) ;

bearish=O >=H-((H-L)*0.20) AND C <= ((H-L)*0.20)+L;

Bullishcond=Sum(bullish,2)==2;

bearishcond=Sum(bearish,2)==2;



Plot(C,"close",colorBlack,styleCandle);

PlotShapes(bullishcond*shapeUpArrow,colorBrightGreen);

PlotShapes(bearishcond*shapeDownArrow,colorRed);

/******************************************/

Filter=bullishcond OR bearishcond;

AddColumn(bullishcond,"bullish",1);

AddColumn(bearishcond,"bearish",1);

--- 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
> 
> 
> 
>   ----- Original Message ----- 
>   From: Mormax 
>   To: equismetastock@xxxxxxxxxxxxxxx 
>   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 
> 
>     a..  Visit your group "equismetastock" on the web.
>       
>     b..  To unsubscribe from this group, send an email to:
>      equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service. 
> 
> 
> -------------------------------------------------------------------
-----------







------------------------ 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/