PureBytes Links
Trading Reference Links
|
Here is a method;
create this code in a file, "myWatch.afl" (any name)
//----------------
CurDB=GetDatabaseName();
if (CurDB == "DB1")
myList=",A,DD,CAC,MSFT,DELL";
else if (CurDB == "DB1")
myList=",Z,WSF,ARG,INT,DELL,";
NameOK=StrFind(mylist,","+Name()+",";
//---------------
Then "include" this file and, in your AA code, add
AND NameOK
to the selection code.
You will maintain the DB specific symbols in your included file
and you will probably want to use a regular watchlist which has all
the symbols to limit the total search...
It's not pretty, but it will work...
Walt
--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> Clearly, watchlists are and are intended to be segregated by
> database, and for the most part this is accomplished very well.
>
> But one lingering disappointment for me is that, if a particular
> watchlist is selected in the backtest/exploration environment,
> switching databases does not release that selection; it is
maintained
> from one database to the next.
>
> For example, in one database, I have a watchlist for all Nikkei 225
> issues. It happens to be the original 'watchlist 0', renamed to
> Nikkei225. If I perform some operation in AB with that watchlist
> selected as the filter, then subsequently change databases, I find
> watchlist 0 (happens to be empty in that second database)
> pre-selected in the filter routine, rather than no selection or
(most
> desirable for me) my previous selection when working in that
database
> earlier.
>
> So, watchlist segregation, while allowing different names and
> different content by database, is not 100 percent complete, or at
> least operation of the filter and selected watchlist is maintained
> from one database to the next. Could this selection process be made
> completely independent by database? Could a database retain its own
> settings, rather than being reset by settings made while in another
> database?
>
> Yuki
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|