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

RE: [amibroker] Addtocomposite help



PureBytes Links

Trading Reference Links

Hi

I have tried your code and it works correct. So i rather believe that you
have maybe mixed watchlist 0 with watchlist 1. I would suggest to check that
watchlist0 really contains your tickers. Create a new watchlist with only 2
tickers to compare.


Buy =1;
if(InWatchList(0))

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

 
- - - - - - - - - - - - - - - - - - - - 
Best regards
 
Thomas
www.tradingbasis.com
support@xxxxxxxxxxxxxxxx
- - - - - - - - - - - - - - - - - - - - 
 
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of dmcleod1981
Sent: Tuesday, January 24, 2006 5:05 PM
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



 






------------------------ 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/