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

[amibroker] Re: Composite Index Help



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "sgfuchs" <sgfuchs@xxxx> wrote:
Hi Stefan,

Thank you for the code... it works great! One question, what's the 
purpose of having the "Filter = 1" code? I ran several scans on a few 
industry groups with and without the code, and the composites looked 
the same.. also, in my original code I included the line "Buy = 0", 
but you have "Buy=Sell=Short=Cover=0"... what am I missing in my 
understanding of the AddToComposite function? Thanks again!

> For Industrygroup composites use :
> sym="~"+IndustryID(1);
> AddToComposite(L,sym,"L");
> AddToComposite(O,sym,"O");
> AddToComposite(H,sym,"H");
> AddToComposite(C,sym,"C");
> AddToComposite(V,sym,"V");
> Buy=Sell=Short=Cover=0;
> Filter=1;
 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/