Hello, Industry(1) is NOT a symbol. Only symbols PRESENT in the database can be added to watch list.
Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "brpnw1" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, January 11, 2007 11:15 PM Subject: [amibroker] What's wrong with this code? > What's wrong with this code? It does NOT write the IndustryIDs to a > watchlist. It leaves the watchlist blank and adds nothing to it, even > though buy signals are triggered. Thanks, Bman > > // add industries with buy signals to watchlist > varScreen = SelectedValue(Buy); > if (varScreen) > { > VarIndustryID = IndustryID(1); > CategoryAddSymbol(VarIndustryID, categoryWatchlist, 6); > } > > > > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links > > > > >
