I was confused by the usage of the word "ranking". This is neither "ranking" nor "rotation" in our understanding. You just want to limit the signals/positions to 10 and prioritize them by the % value. This doesn't require coding (almost). To get there, there are two extra steps required:
A. By editing your rule-based strategy, override Wealth-Lab's random double value assigned to position's priority with your custom priority value (i.e. the %B).
B. Use
Position Options PosSizer to control the number of positions/alerts.
Here's how:
1. Add your two conditions (Price above > SMA100, RSI14 > 50)
2. Click "Open code in new Strategy window"
3. Now the tricky part. You need to assign each stock its %B value. Where you see the usual...
CODE:
Please log in to see this code.
...you change it like this:
CODE:
Please log in to see this code.
This assumes there's a variable for the %B (BollingerPctB ?) If you need assistance with this, copy/paste your resulting code.
4. Finally, in the PosSizer you need to click "Max open positions" and type in a number (here: 10) in the input field on the right of it.
Voila.