Watchlistname instead of watchlist 0

I would like to go to my watchlistname topperformer instead of watchlist 0 here.
How do I run this to use my watchlist name topperformer here
List = ........?? Thanks for help.

t// we run the code on WatchList 0 ! 
List = CategoryGetSymbols( categoryWatchlist,0 );
SetOption("MaxOpenPositions", 3);
 
if ( Status("stocknum") == 0 ) // Generate ranking when we are on the very first symbol
{
     StaticVarRemove( "values*" );

     for ( n = 0; ( Symbol = StrExtract( List, n ) )  != "";  n++    )
     {
         SetForeign ( symbol );
        
         // value used for scoring
         values = 100 - RSI();
         RestorePriceArrays();
         StaticVarSet (  "values"  +  symbol, values );
         _TRACE( symbol );
     }

     StaticVarGenerateRanks( "rank", "values", 0, 1224 );
}ype or paste code here

You have asked that last year already

So

listname = "topperformer";
category = categoryWatchlist;
listnum = CategoryFind( listname, category );
list = CategoryGetSymbols( category, listnum);
2 Likes

thanks I know but I didn´t find it in my scripts. Missing a find function which go through all scripts. Thanks :smiley:

Wrong. There is search function in this forum.
https://forum.amibroker.com/search

As well as there is "Find in files" functionality in AmiBroker's formula editor (since AB 6.10):
649

630

3 Likes

thanks. I didn´t know that. Learn today again and again and hopefully getting better.