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

[EquisMetaStock Group] Re: 20 / 20 bars



PureBytes Links

Trading Reference Links

MS code equivalent:

---8<---------------------

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;

BullishCond-BearishCond

---8<---------------------


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



--- In equismetastock@xxxxxxxxxxxxxxx, sai20_2000 <no_reply@xxxx> 
wrote:
> 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);





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