Am having problems visualizing how to select stocks from top 3 sectors for backtesting.
I found the sorting code that dingo referred to earlier... but by itself does not seem enough. Somehow it seems I need to have an intermediate buffer for holding the sector IDs or some similar scheme. Rotational testing does not provide adequate flexibility. Position score could select the top one sector value, but not the ID of the sector, which is what I think I need (for top 3 sectors) I don't see how I can limit the universe of stocks to the top 3 sectors, so I can select from those stocks based on some indicator. Appreciate any thoughts Ara
