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

[amibroker] Re: Coding question



PureBytes Links

Trading Reference Links

do you mean "Cross above zero?"
cross_above_zero = Cross( CCI(20), 0); // cross above zero

This one::

CCIlevel = Param("CCIlevel", 0, -200, 200, 25); 
per = Param("CCI period", 20, 5, 50, 5); 
cross_above_zero_1 = Cross( CCI(per), CCIlevel); 

would allow to select the level and the period of CCI (adjust to your
needs).
Note that cross_above_zero and cross_above_zero_1 are _arrays_
and can be used elsewhere in your system.

--- In amibroker@xxxxxxxxxxxxxxx, "mymail" <grpmail@xxxx> wrote:
> I need to test a condition when the CCI(20) crosses its own
zeroline.
> 
> Since the cross() function needs 2 arrays, "cross(CCI(20), ?array
)" 
how
> would I be able to write this?
> 
> Thank you
> Tom





------------------------ 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/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/