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

RE: [amibroker] Addtocomposite help



PureBytes Links

Trading Reference Links

I’m going to work in a few minutes, so I’ll look at this more later.  But…

 

  • One issue is that the standard for ATCs is to begin the symbol with “~”, not “$”.  Try changing that.  

 

  • Also, check your ATC flags. atcFlagDefaults = 2  excludes symbols in Group 253.    I use:

 

atcCurrentFlags = atcFlagResetValues + atcFlagCompositeGroup + atcFlagEnableInExplore;

 

            Then I pass atcCurrentFlags to AddToComposite.

 

  • Finally, try using another Watchlist number other than (0).

 

Regards,

 

Dan.

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of dmcleod1981
Sent: Tuesday, January 24, 2006 8:05 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Addtocomposite help

 

I am having an issue when running a composite that it doesn't appear
to pick up all the securities in a watch list.

For example I make a watch list of the S&P 100 securities and verify
that all of the data and symbols are current. When I run the
following scan I get less than 100 securities. More disconcerting is
that the number changes each time I run it but it never equals the
100 total. I have the SPX as the symbol in the symbol window and I
have the watchlist defined as for the scan.


if(InWatchList(0))

{
//Index Count
sym = "$"+"OEX Count";
AddToComposite(1,sym,"X");

...other ATC's etc
}

I have tried substuting "C" for "X" etc but it doesn't help. Do I
need a special flag in there?

Thanks

Dave








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