PureBytes Links
Trading Reference Links
|
This should get you your Bullish and bearish conditions without Rsi
conditions....there are no hits when RSI conditions are added.
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);
Anthony
--- In amibroker@xxxxxxxxxxxxxxx, "iascool" <sai20_2000@xxxx> wrote:
>
> Hello,
> i want to find out two consecutive bullish or bearish bars , for
> following conditions
> 1)Bullish- open should be in bottom 20% of the days range and close
> in top 20% of days range and rsi below 30 rising
> 2) Bearish - open should be in top 20% of days range and close in
> bottom 20% of days range.and rsi above 75 falling
> Both the bars range should be above ATR(10)
>
> For the bullish bar I have partially tried to put the condition as
> folows but results not to mark
> // for bullish
> Cond1=((C-L)/(H-L))>0.8 AND ((O-H)/(H-L))>0.8 AND RSI(14)<30;
> buy =iif( AVG>ATR(10),cond1,1);
>
> kind Regards
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|