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