PureBytes Links
Trading Reference Links
|
Hi Bruiser
All you have to do is reverse the direction of the cross
by
//CCI Crossover above the Zero line
pds=20;
P1=CCI(pds);
Buy = Cross( 0, P1); // changing the order , changes the dierction of
the cross to Zero line crossing above P1
Filter=Buy;
AddColumn(Buy,"Buy");
AddColumn(Close,"Close",1.3);
AddColumn( CCI(20), "CCI", 1.2 );
See Change
--- In amibroker@xxxxxxxxxxxxxxx, "bruiserbbq" <bruiserbbq@xxxx>
wrote:
> Hi gang, below is the code that I use to find stocks that have just
> crossed ABOVE the CCI zero line............how can I change it to
> find stocks that have just crossed BELOW the CCI zero line?
>
> //CCI Crossover above the Zero line
>
>
> pds=20;
> P1=CCI(pds);
>
> Buy = Cross( p1, 0);
> Filter=Buy;
>
>
> AddColumn(Buy,"Buy");
> AddColumn(Close,"Close",1.3);
> AddColumn( CCI(20), "CCI", 1.2 );
>
>
> Cheers Bruiser
------------------------ 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/
|