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

[amibroker] initial or initialize variable



PureBytes Links

Trading Reference Links


Hello,

I need some help.

My goal is to have a CCI with variable period so that bars since buy
or sell that exceeds 10 are the new CCI period.

I have coded this:

p4=10;

bs=BarsSince(Buy OR Sell);
pp=Max(bs,p4);
CC=CCI(pp);

Buy=Cover=Cross(Cc,-100);
Sell=Short=Cross(100,Cc);

**********
problems are initialization of arrays.
how can i consider buy/sell before calculation, and at the same time
to make calculations i need buy/sell.

Thanks for any help.

Hans






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/