Figured this out:

function CountWatchList( listnum ) 
{ 
   // retrive comma-separated list of symbols in watch list 
   list = CategoryGetSymbols( categoryWatchlist, listnum ); 

   Count = 0; // just in case there are no watch list members 

   for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ ) 
   { 
      Count = Count + 1;
   } 
   return Count; 
} 

ListQty = CountWatchList(0)/10;//Counting Watchlist 0

--- In [email protected], "re_rowland" <rowl...@...> wrote:
>
> psuedo code would be:
> 
> ListQty = number of stocks in WL (not sure of easiest way to do this)
> SetOption("MaxOpenPositions",ListQty/10);
> 
> 
> --- In [email protected], "droskill" <droskill@> wrote:
> >
> > Question for the group - I know how to buy up to a specific number of 
> > positions, but how can I make the rotational trade the top 10% of positions 
> > without regard to a specific number of stocks?
> > 
> > Any help greatly appreciated,
> > 
> > Damian
> >
>


Reply via email to