Hi Anthony.The code is posted below.Right now all the symbols are in
the Undefined list.That was clearly not the right thing to do.Thanks
for the help
Allan
_SECTION_BEGIN("Sector and Industry
Composites");
Buy=Sell=Short=Cover=0;
Scan =
Status("Action")==3;
if(Scan) {
inc = 1;
sym1 =
"~Industry - " + IndustryID(1);
AddToComposite( inc * L,
sym1,"L",1+2+4+8+16+128);
AddToComposite( inc * O,
sym1,"O",1+2+4+8+16+128);
AddToComposite( inc * H,
sym1,"H",1+2+4+8+16+128);
AddToComposite( inc * C,
sym1,"C",1+2+4+8+16+128);
AddToComposite( inc * V,
sym1,"V",1+2+4+8+16+128);
sym1 = "~Sector - " +
SectorID(1);
AddToComposite( inc * L,
sym1,"L",1+2+4+8+16+128);
AddToComposite( inc * O,
sym1,"O",1+2+4+8+16+128);
AddToComposite( inc * H,
sym1,"H",1+2+4+8+16+128);
AddToComposite( inc * C,
sym1,"C",1+2+4+8+16+128);
AddToComposite( inc * V,
sym1,"V",1+2+4+8+16+128);
}
_SECTION_END();
---
In amibroker@xxxxxxxxxps.com,
"Anthony Faragasso" <ajf1111@xxx>
wrote:
>
> can
you give me an example of how you named your composite tickers
>
>
> Anthony
> ----- Original Message -----
> From:
matrix10014
> To: amibroker@xxxxxxxxxps.com
> Sent: Saturday, January 05, 2008 7:58 PM
> Subject: [amibroker]
Group 253
>
>
> Hi all...
>
> The Ami
adventure continues...I had somehow managed to create
identical
> sector and industry composites with different dates that all went
into
> Group 253.
>
> Not knowing how to correct the
problem,I made the error of using
the
> Assignments organizer to
move the newly created composites from
group
> 253 to Undefined.I
was hoping to start over,but now when I run
SCAN for
> the sector
composites,Group 253 remains empty and my new sectors
are in
>
Undefined along with 10,000 other securities...
>
> Can
someone kindly help me out here.This is unbelievably
frustrating
>
> Thanks,
>
> Allan
>
>
>
>
>
>
>
----------------------------------------------------------
----------
>
>
> No virus found in this incoming message.
> Checked by
AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.17.13/1210 -
Release Date:
1/5/2008 11:46 AM
>