Everyone to his own preference, but I prefer to clear the watchlist in
one module of AFL (not sure how many times Amibroker executes since it doesn't
affect my
timing to what I can perceive) . This Clip looks like it comes
from Bruce Robinson and will clear WL 50. Rather than getting "fancy" and
reading string of
watchlists to clear more than one, I will attach sections of code one after
the other so that if I wanted to clear list 51, I would repeat this
code.
//*************************************************************************************************************
// clear Watchlist 50, which will be used to store composite symbols of hedge
results
ClearList = GetCategorySymbols(categoryWatchlist, 50);
for( i = 0; ( symC = StrExtract(ClearList, i) ) != ""; i++ )
{
CategoryRemoveSymbol( symC, categoryWatchlist, 50 );
}
// get the short and long hedging funds that are adequately correlated to the
selected fund
//***********************************************************************************************************
Being a "Code Monkey" of sorts, I, like Herman and Ken Close,
acquired InfoSelect 2-3 years ago
and use it to store clips of code that I don't know how to do at that time or
some that I want to study later. So in
seeing a email with a piece of code that looks interesting or may
be useful, I clip and paste it in my InfoSelect DB, including
the links. Periodically I make backup passes where I've used
it to store every file on my machine that ends in AFL
and it serves me much better in searches than the desktop
indexers like MS Desktop. It's worth the time and money for
the product from MicroDecision (Fred this is not spam).
Hope this helps
JOE