Select exploration result, howto

Exploration result can be sort using SetSortColumns( col number );
The desired rows can be selected and be saved in a watchlist manually. However is there a way to write AFL code to select say the first 20 rows and output them to a watchlist?

Thanks for answering.


The way you described - no. But you can do the sorting ranking entirely inside the formula (StaticVarGenerateRanks) and put top-N symbols into the watch list using CategoryAddSymbol function.