Hi Terry, no it is not working that way either. Those parameters have a different meaning (fixup, tradeprice).
enzo --- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > Just modify the last line: > SetForeign(item,True,True); > > 2nd argument True or False at your discretion. > 3rd argument True changes tradeprices too. > > If by chance that does not work then do this: > > Buy = True AND Name() == item; > > > In both cases, make sure you have "filter" checked are filtering on the > same Watchlist otherwise it can't find the stock. > -- > Terry > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of herrfrechdax > Sent: Tuesday, July 04, 2006 10:21 > To: [email protected] > Subject: [amibroker] How to BUY a FOREIGN? > > i am getting nuts... i am unable to backtest a strategy that buys > certain symbols of watchlist. > > following simple example of a loop through the symbols of a > watchlist I found in AL library. Will someone please fill in the > code to buy the ticker. It is so appreciatetd! Thanks in advance. > enzo > > listNum=0 ;//enter watchlist number > list = GetCategorySymbols( categoryWatchlist, listnum ); > for( j = 0; ( item = StrExtract( list, j ) ) != ""; j++ ) > { > SetForeign(item); > > > //BUY=1; // will only buy first symbol of the watchlist > > > RestorePriceArrays();// to get out the influence of SetForeign > } > > > > > > > > > > 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 > 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: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
